有个小问题!向各位请教!!
echo "<table cellspacing=0 cellpadding=0>";
echo "<form action=memberkind_mng.php?id=".$MYSQL->data[id]."' method='post' name='form_edit'><tr>";
echo "<td>[<input type='submit' name='submit_del' class='CC' value='删除' onclick='return window.confirm(\"真的要删除吗?\");'>";
echo "</td></tr></form></table>";
在另一个页面,有这么一句:<?
if($_POST['submit_del']){
$MYSQL->query("delete from pe_link_kind where id=".$_GET["id"]);
$msg="类目删除成功!";
}
?>
然后按下按扭后,出现以下错误:
错误: 不能执行SQL查询: delete from pe_link_kind where id=1\' MySQL系统报告:You have an error in your SQL syntax near '\'' at line 1
这是怎么回事!!??