我知道這已被詢問了一千次,但我仍然找不到錯誤。警告:無法修改標題信息
<body><?php
$con = mysql_connect("xxxxxxxxx","xxxxxxxxxxx","xxxxxxxx");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("xxxxxxxxxxx", $con);
$sql="INSERT INTO mytable (row1, row2)
VALUES
('$_POSTrow1]','$_POST[row2]')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
header("Location: compsubmit.php}");
mysql_close($con)
?></body>
*警告:捂臉傳入* – Gordon 2011-04-15 10:31:23
而強制性警告......不要在你的SQL語句中直接使用用戶輸入!閱讀關於預準備語句和SQL注入。 – enricog 2011-04-15 10:34:44
parkin:你找到你的問題的答案..? – balanv 2011-04-20 13:21:08