gpt4 book ai didi

php - mysql_num_fields() : supplied argument is not a valid MySQL result resource with timestamp greater than

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

mysql正在输出这个错误

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 '=> '0000-00-01'' at line 1

这是我的代码

 foreach($tables as $table)
{
//SELECT Everything from the table in use
$sql = "SELECT * FROM `".$table."` WHERE `timestamp` => '".$offline_time."'";
$result = mysql_query($sql);
echo mysql_error();
//Return Number of fields/colulms in the table.
$num_fields = mysql_num_fields($result);

最佳答案

我假设你的意思是 >= 而不是 => for "equal or greater too"

关于php - mysql_num_fields() : supplied argument is not a valid MySQL result resource with timestamp greater than,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8879788/

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