Severity: Notice
Message: Undefined index: id_order
Filename: controllers/ECommerce_C.php
Line Number: 161
Backtrace:
File: /home/aurao093/public_html/application/controllers/ECommerce_C.php
Line: 161
Function: _error_handler
File: /home/aurao093/public_html/index.php
Line: 315
Function: require_once
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/aurao093/public_html/system/core/Exceptions.php:271)
Filename: core/Common.php
Line Number: 570
Backtrace:
File: /home/aurao093/public_html/application/models/Orders_M.php
Line: 38
Function: query
File: /home/aurao093/public_html/application/controllers/ECommerce_C.php
Line: 165
Function: apply_discount
File: /home/aurao093/public_html/index.php
Line: 315
Function: require_once
Error Number: 1064
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 'AND id_product > 2' at line 1
UPDATE tab_details_orders SET discount = 0 WHERE id_order = AND id_product > 2
Filename: models/Orders_M.php
Line Number: 38