好的,我的插入查询在我的服务器上不起作用。这是我正在运行的代码:
<?php
$name = $_GET['name'];
$database_servidor = "localhost";
$database_usuario = "username";
$database_pass = "pass";
$database_nombre = "table";
$conexion = mysql_connect($database_servidor, $database_usuario, $database_pass);
mysql_select_db($database_nombre, $conexion);
$query = "INSERT INTO `nombre`(`card`) VALUES (`$name`)";
echo $query;
$sql = mysql_query($query) or die (mysql_error());
?>
结果如下:
http://santirivera92.co.cc/insert.php?name=Santiago%20Rivera
我究竟做错了什么?