<分区>
我有几行代码应该在 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 .