A PHP Error was encountered

Severity: Warning

Message: Missing argument 2 for Product::buy()

Filename: controllers/product.php

Line Number: 8

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: id

Filename: controllers/product.php

Line Number: 14

A PHP Error was encountered

Severity: Notice

Message: Undefined variable: id

Filename: controllers/product.php

Line Number: 16

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/punepc/public_html/system/core/Exceptions.php:185)

Filename: core/Common.php

Line Number: 438

Database Error

A Database Error Occurred

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 '' at line 1

select avg(rating) as Average from product_rating where product_id=

Filename: /home/punepc/public_html/controllers/product.php

Line Number: 16