A PHP Error was encountered

Severity: Warning

Message: Invalid argument supplied for foreach()

Filename: controllers/SingleCourse.php

Line Number: 29

Backtrace:

File: /home/cancham/public_html/cancham.org.eg/application/controllers/SingleCourse.php
Line: 29
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: 31

Backtrace:

File: /home/cancham/public_html/cancham.org.eg/application/controllers/SingleCourse.php
Line: 31
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: 88
Function: query

File: /home/cancham/public_html/cancham.org.eg/application/controllers/SingleCourse.php
Line: 31
Function: get_sub_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 sub_courses_gallery WHERE course_id=

Filename: models/Course.php

Line Number: 88