$send_event = $db->query(sprintf("SELECT `bmembMember` FROM `bmembBusiness` = '%u' WHERE `bmembBusiness` = '%u' ORDER BY `bmembId` DESC", $bs['busId'])) OR die('Cron not run') ;
while($se=$db->fetch_row($send_event))
{
$text = "The {$bs['busName']} business went bankrupt\, all members have been made redundent." OR die('Cron not run');
Thanks
Your sprintf uses 2 values, but you only provide one. One isn't needed anyway and that line should be
$send_event = $db->query(sprintf("SELECT `bmembMember` FROM `bmembBusiness` WHERE `bmembBusiness` = '%u' ORDER BY `bmembId` DESC", $bs['busId'])) OR die('Cron not run') ;
修复应该修复查询的FROM
子句。
...FROM `bmembBusiness` WHERE...
Highted area of query is wrong,
"SELECT bmembMember
FROM bmembBusiness
= '%u' WHERE bmembBusiness
= '%u' ORDER BY bmembId
DESC", $bs['busId'])
Try This Which should Fix the query :-
SELECT
bmembMember
FROM Table_name WHEREbmembBusiness
Like '%u' ORDER BYbmembId
DESC, abs(busId);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.