0

我在使用此代码时遇到问题

$set = 'mycrazyemail@gmail.com'
$check_is_idk = $db->query("SELECT * FROM `ppl` WHERE `email` = '{$set}' AND `is` = 'idk' AND `belongs` = '{$id}'");

问题是什么?

4

1 回答 1

1

您在第一行的末尾缺少一个分号,它当前会导致解析错误:

$set = 'mycrazyemail@gmail.com';
$check_is_idk = $db->query("SELECT * FROM `ppl` WHERE `email` = '{$set}' AND `is` = 'idk' AND `belongs` = '{$id}'");
于 2012-08-26T19:59:07.160 回答