我需要用3個驗證檢查刪除某些東西。我該怎麼做。目前,這是我這樣做的方式:用3個驗證者刪除
mysql_query("DELETE FROM comments WHERE comment_id='$comment' AND (
p_id='$pid'
for_w = '$z'");
我需要用3個驗證檢查刪除某些東西。我該怎麼做。目前,這是我這樣做的方式:用3個驗證者刪除
mysql_query("DELETE FROM comments WHERE comment_id='$comment' AND (
p_id='$pid'
for_w = '$z'");
什麼:
"DELETE FROM comments WHERE comment_id='$comment' AND p_id='$pid' AND for_w = '$z'"
就快:
mysql_query("DELETE FROM comments WHERE comment_id='$comment'
AND p_id='$pid'
AND for_w = '$z'");
1 - 你必須把和你的第二個之間和第三個條件
2 - 刪除(在第一個之後:
mysql_query("DELETE FROM comments WHERE comment_id='$comment' AND
p_id='$pid' AND
for_w = '$z'");
它工作!謝謝! – KPO 2011-05-19 13:57:17