Severity: Notice
Message: Trying to get property 'product_id' of non-object
Filename: controllers/Productdetail.php
Line Number: 16
Backtrace:
File: /home/r6l5o8ky8omx/public_html/application/controllers/Productdetail.php
Line: 16
Function: _error_handler
File: /home/r6l5o8ky8omx/public_html/index.php
Line: 309
Function: require_once
Severity: Notice
Message: Trying to get property 'images' of non-object
Filename: controllers/Productdetail.php
Line Number: 18
Backtrace:
File: /home/r6l5o8ky8omx/public_html/application/controllers/Productdetail.php
Line: 18
Function: _error_handler
File: /home/r6l5o8ky8omx/public_html/index.php
Line: 309
Function: require_once
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 7
SELECT p.*,s.ingredient_name,w.material_name,c.category_name,co.color_name FROM products p LEFT JOIN category c on c.category_id in (p.category_id) LEFT JOIN ingredient s on s.ingredient_id=p.ingredient LEFT JOIN materials w on w.material_id=p.material LEFT JOIN color co on co.color_id=p.color WHERE p.product_id=
Filename: models/User_model.php
Line Number: 270