A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: controllers/SingleCourse.php

Line Number: 37

Backtrace:

File: /home/cancham/public_html/cancham.org.eg/application/controllers/SingleCourse.php
Line: 37
Function: _error_handler

File: /home/cancham/public_html/cancham.org.eg/application/controllers/SingleCourse.php
Line: 13
Function: index

File: /home/cancham/public_html/cancham.org.eg/index.php
Line: 314
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'id' of non-object

Filename: controllers/SingleCourse.php

Line Number: 38

Backtrace:

File: /home/cancham/public_html/cancham.org.eg/application/controllers/SingleCourse.php
Line: 38
Function: _error_handler

File: /home/cancham/public_html/cancham.org.eg/application/controllers/SingleCourse.php
Line: 13
Function: index

File: /home/cancham/public_html/cancham.org.eg/index.php
Line: 314
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'id' of non-object

Filename: controllers/SingleCourse.php

Line Number: 39

Backtrace:

File: /home/cancham/public_html/cancham.org.eg/application/controllers/SingleCourse.php
Line: 39
Function: _error_handler

File: /home/cancham/public_html/cancham.org.eg/application/controllers/SingleCourse.php
Line: 13
Function: index

File: /home/cancham/public_html/cancham.org.eg/index.php
Line: 314
Function: require_once

A PHP Error was encountered

Severity: Warning

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

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/cancham/public_html/cancham.org.eg/application/models/Course.php
Line: 72
Function: query

File: /home/cancham/public_html/cancham.org.eg/application/controllers/SingleCourse.php
Line: 39
Function: get_course_gallery

File: /home/cancham/public_html/cancham.org.eg/application/controllers/SingleCourse.php
Line: 13
Function: index

File: /home/cancham/public_html/cancham.org.eg/index.php
Line: 314
Function: require_once

Database Error

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 courses_gallery WHERE course_id=

Filename: models/Course.php

Line Number: 72