나는 OpenCart 1.4.9에서 쿠폰에 대한 보고서를해야 몇 줄의 코드를 가지고,하지만 난이 오류를 극복 할 수 없습니다이상한 오류가
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
'order where coupon_id = 16' at line 1.
$getcouponinfo1 = mysql_query("select * from order where coupon_id = $coupon_id")
or die(mysql_error());
나머지 코드는 here입니다.
이 링크를 살펴보십시오. sql에는 예약어가 있습니다. http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html 그래서 @ Mat의 답변을 따라야합니다 –