我该怎么办,这个错误笨?
数据库错误发生错误号:1064
您的SQL语法错误; 检查对应于你的MySQL服务器版本,在1号线附近使用“显示”正确的语法手册
SELECT @rownum:= @ ROWNUM + 1 ROWNUM,T * FROM(SELECT @rownum:= 0)。R,按id DESC LIMIT 2,显示hotel_submits吨顺序
文件名:D:\ XAMPP \ htdocs中\迈赫迪\ SYSTEM \数据库\ DB_driver.php
行号:330
码:
$data['results'] = $this->db->query("SELECT @rownum:=@rownum+1 rownum, t.* FROM (SELECT @rownum:=0) r, hotel_submits t order by id desc LIMIT ".$config['per_page'].", ".$this->uri->segment(3)."");