时间:2021-07-01 10:21:17 帮助过:27人阅读
$mac.="'".$value."',";$listimei = $db->query("SELECT imei from messagelog where mac in ($mac) ")->fetchList();
试试
$listimei = $db->query("SELECT imei from messagelog where mac in ('$value') ")->fetchList();
你的 $mac 为空
实际执行的是 SELECT imei from messagelog where mac in ( )
这就要出错了:
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 ')'
$mac最后多一个逗号