ecshop本地测试没问题,上传到服务器安装后出现SQL错误,错误代码如下: 50
ecshop本地测试没问题,上传到服务器安装后出现SQL错误,错误代码如下:MySQLservererrorreport:Array([0]=>Array([messag...
ecshop本地测试没问题,上传到服务器安装后出现SQL错误,错误代码如下:
MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT g.goods_id , o.user_id, o.city FROM `shopdb`.`ecs_order_goods` AS g RIGHT JOIN `shopdb`.`ecs_order_info` AS o ON o.order_id = g.order_id ORDER BY O.add_time DESC LIMIT 0,10 ) [2] => Array ( [error] => Unknown column 'O.add_time' in 'order clause' ) [3] => Array ( [errno] => 1054 ) )
还请大神指点!还有我搜了一下,有人说是ecs_order_info表内少add_time字段,我查了数据库,里面有这个字段,不知道是什么原因呢?若能指导解决问题,另追加50分! 展开
MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => SELECT g.goods_id , o.user_id, o.city FROM `shopdb`.`ecs_order_goods` AS g RIGHT JOIN `shopdb`.`ecs_order_info` AS o ON o.order_id = g.order_id ORDER BY O.add_time DESC LIMIT 0,10 ) [2] => Array ( [error] => Unknown column 'O.add_time' in 'order clause' ) [3] => Array ( [errno] => 1054 ) )
还请大神指点!还有我搜了一下,有人说是ecs_order_info表内少add_time字段,我查了数据库,里面有这个字段,不知道是什么原因呢?若能指导解决问题,另追加50分! 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询