0
我仍然獲得轉義「在我的數據庫下面是我的代碼:php的mysql_real_escape_string不起作用?
$connection=mysql_connect ('localhost', $username, $password);
if (!$connection) {
die('Not connected : ' . mysql_error());
}
$name = mysql_real_escape_string($name);
$address = mysql_real_escape_string($address);
$number = mysql_real_escape_string($number);
mysql_query("INSERT INTO people (name, area, phone)
VALUES ('$name', '$address', '$number')");
}
什麼是錯在這裏
哦,不錯,不知道..謝謝@Pekka – Tom 2011-12-26 14:26:09