$query_string = "UPDATE _notifications SET _notifications.notification_flag = 0 WHERE _notifications.notification_id = 'JTQBPULM3M' ;
UPDATE _notifications SET _notifications.notification_flag = 0 WHERE _notifications.notification_id = 'KC7KZT2JAT' ;
UPDATE _notifications SET _notifications.notification_flag = 0 WHERE _notifications.notification_id = 'M6L5T5Z2K0' ;";
$this->db->query($query_string);
Run Code Online (Sandbox Code Playgroud)
查询从phpmyadmin运行正常但如果从php运行则抛出此错误:
错误号码:1064
您的SQL语法有错误; 检查与MySQL服务器版本对应的手册,以便在第2行的'UPDATE _notifications SET _notifications.notification_flag = 0 WHERE _notificati'附近使用正确的语法
UPDATE _notifications
SET _notifications.notification_flag = 0
WHERE _notifications.notification_id = 'JTQBPULM3M' ;
UPDATE _notifications
SET _notifications.notification_flag = 0
WHERE _notifications.notification_id = 'KC7KZT2JAT' ;
UPDATE _notifications
SET _notifications.notification_flag = 0
WHERE _notifications.notification_id = 'M6L5T5Z2K0' ; …
Run Code Online (Sandbox Code Playgroud) 如何在C++中将vartiables值转换为其他名称?就像在这个PHP片段.
$string = 'testVar';
${$string} = 'test';
echo $testVar; // test
Run Code Online (Sandbox Code Playgroud) 可能重复:
$和jQuery有什么区别
我注意到使用" jQuery(selector)"代替" $(selector)"的情况,两者之间有什么区别?
我正在使用codeigniter并且正在考虑如何创建主页控制器,http:// localhost的控制器.截至目前,我可以访问http:// localhost / {controller}的所有控制器,但不仅仅是localhost.我的.htaccess如下:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|sandbox|scripts|robots\.txt)
RewriteRule ^(.*)$ /index.php/test/$1 [L]
Run Code Online (Sandbox Code Playgroud) php ×3
codeigniter ×2
.htaccess ×1
c++ ×1
datetime ×1
javascript ×1
jquery ×1
mod-rewrite ×1
mysql ×1
phpmyadmin ×1
sql ×1
time ×1