已购买,到登入那页就出现这个问题。

2016-07-07 15:13 来源:www.chinab4c.com 作者:ecshop专家

请问这是怎么回事啊~~~~~
没有登入购买。到要登入时就出现这个页面,但是登入后购买拍这个东西又不会这样~~
请问是什么问题,怎么解决啊~~~
MySQL server error report:Array ( [0] => Array ( [message] => MySQL Query Error ) [1] => Array ( [sql] => select goods_brief,shop_price,goods_name,goods_thumb from `*****`.`shop_goods` where goods_id= ) [2] => Array ( [error] => 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 '' at line 1 ) [3] => Array ( [errno] => 1064 ) )

回答:
问题是挺大的

修改过什么了?

写sql的时候,把变量用引号括起来 goods_id='$goods_id'

中国服装人网给你支持,希望楼主找出答案

自己改过代码吧