3个验证者删除

发布于 2024-11-08 07:43:43 字数 169 浏览 0 评论 0原文

我需要删除一些经过 3 次验证检查的内容。我该怎么办呢。目前我正在这样做:

 mysql_query("DELETE FROM comments WHERE comment_id='$comment' AND (
 p_id='$pid'
 for_w = '$z'");

I need to delete something with 3 verification checks. how can i do it. Currently this is the way i am doing it:

 mysql_query("DELETE FROM comments WHERE comment_id='$comment' AND (
 p_id='$pid'
 for_w = '$z'");

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

鹿港巷口少年归 2024-11-15 07:43:43

怎么样:

"DELETE FROM comments WHERE comment_id='$comment' AND p_id='$pid' AND for_w = '$z'"

What about:

"DELETE FROM comments WHERE comment_id='$comment' AND p_id='$pid' AND for_w = '$z'"
夜雨飘雪 2024-11-15 07:43:43

你就快到了:

 mysql_query("DELETE FROM comments WHERE comment_id='$comment' 
                                   AND p_id='$pid' 
                                   AND for_w = '$z'");

You're almost there:

 mysql_query("DELETE FROM comments WHERE comment_id='$comment' 
                                   AND p_id='$pid' 
                                   AND for_w = '$z'");
樱娆 2024-11-15 07:43:43

1 - 您必须在第二个和第三个条件之间放置“AND”
2 - 删除(第一个之后:

mysql_query("DELETE FROM comments WHERE comment_id='$comment' AND
 p_id='$pid' AND
 for_w = '$z'");

1 - You have to put AND between your second and third condition
2 - Remove ( after the first one:

mysql_query("DELETE FROM comments WHERE comment_id='$comment' AND
 p_id='$pid' AND
 for_w = '$z'");
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文