|
以前用2.10的网站后台,升级到2.11后,里面的变量的类型不好使了,例如function edit($id=0,$lang_id=0)
{
....
$this->db->update('articles',$save,'id ='.$id);
会出现SQL错误(错误如下)
数据库错误发生 Error Number: 1064
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 '`=6`' at line 1
UPDATE `cms_articles` SET `title` = '联系我们' WHERE `id` `=6`
Filename: D:\xampp\htdocs\www\6083\system\database\DB_driver.php
Line Number: 330
|
|