gpt4 book ai didi

php - MySql Select 语句不起作用

转载 作者:太空宇宙 更新时间:2023-11-03 10:57:00 25 4
gpt4 key购买 nike

<分区>

我有一个非常简单的选择语句:

$sqllinks = mysql_query("SELECT * FROM notif WHERE mem_id = '$logOptions_id' AND read = '0' ORDER BY date") or die (mysql_error()); // query the member
$numofnotif = mysql_num_rows($sqllinks);

但是我经常收到错误:

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 'read = '0' ORDER BY date' at line 1

我已经尝试了所有我能想到的方法来让它工作,但不知何故它没有。

谢谢。

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com