A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Product.php

Line Number: 120

Backtrace:

File: /home/sfindonesia/sfindonesia.co.id/application/controllers/Product.php
Line: 120
Function: _error_handler

File: /home/sfindonesia/sfindonesia.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/Product.php

Line Number: 121

Backtrace:

File: /home/sfindonesia/sfindonesia.co.id/application/controllers/Product.php
Line: 121
Function: _error_handler

File: /home/sfindonesia/sfindonesia.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: product/detail.php

Line Number: 20

Backtrace:

File: /home/sfindonesia/sfindonesia.co.id/application/views/product/detail.php
Line: 20
Function: _error_handler

File: /home/sfindonesia/sfindonesia.co.id/application/controllers/Product.php
Line: 137
Function: view

File: /home/sfindonesia/sfindonesia.co.id/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/sfindonesia/sfindonesia.co.id/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 573

Backtrace:

File: /home/sfindonesia/sfindonesia.co.id/application/views/product/detail.php
Line: 21
Function: query

File: /home/sfindonesia/sfindonesia.co.id/application/controllers/Product.php
Line: 137
Function: view

File: /home/sfindonesia/sfindonesia.co.id/index.php
Line: 315
Function: require_once

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 * FROM product_pict where id_product=

Filename: views/product/detail.php

Line Number: 21