【发布时间】:2014-07-11 05:37:00
【问题描述】:
drupal 日志中不断出现错误,不明白为什么。有人可以帮我吗?仅供参考,我在网站上有一个购物车。移液器.com。我还附上了截图
感谢任何帮助。谢谢!
消息错误
您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,以在第 7 行查询的 '' 附近使用正确的语法:SELECT
id,priceFROM wb_uc_cart_items WHEREcart_id= '00df18eef923efe7bc180f0307e713e4' ANDsnid= 314 987654326@ = 'new' ANDdiscounted= 'yes' ORDER BYpriceASC LIMIT in /mnt/ebs/apache2/vhosts/pipettes.com/html/sites/all/modules/indigo_import/indigo_import.module 在线623.
indigo_import.module 在第 623 行
621 $sql_updates = array();
622
623 $result = db_query($sql);
624 while ($row = db_fetch_object($result)) {
625
626 $sql_updates[] = "UPDATE {wb_uc_cart_items}
627 SET `status` = 'd'
628 WHERE `id` = " . $row->id . " AND `discounted` = 'yes' AND `status` = 'new' LIMIT $s_discount_qty;";
629 $dx++;
630
631 if($snode->field_discounted_prices[0]['value']) {
632 $this_total_discount += ($row->price - $snode->field_discounted_prices[0]['value']);
633 } elseif($snode->field_discounted_percentage[0]['value']) {
634 $this_total_discount += (($snode->field_discounted_percentage[0]['value'] / 100) * $row->price);
635 }
636
637 }
【问题讨论】:
标签: sql drupal-6 runtime-error ubercart