0
我無法得到這個編譯正確。使用PHP插入到MySQL數據庫的某些領域
$username = mysql_real_escape_string($_GET['username']);
$about = mysql_reaL_escape_string($_GET['about']);
$icebreaker = mysql_reaL_escape_string($_GET['icebreaker']);
$query = "UPDATE '$mysql_database'.main SET about = '$about', icebreaker = '$icebreaker' WHERE username = '$username';";
我得到的錯誤
You have an error in your SQL syntax; check the manual that corresponds
to your MySQL server version for the right syntax to use near ''a4396957_users'.main
SET about = 'testing', icebreaker = 'ice' WHERE us' at line 1
有缺這個說法?
他們應該然而逃脫,只是不能與撇號,否則列'鎖定「或」訂單「可能會導致一些問題 – Moak 2012-03-01 17:48:41
好,好的編輯;) – Moak 2012-03-01 17:58:32