A PHP Error was encountered
Severity: Error
Message: Using $this when not in object context
Filename: helpers/user_activity_helper.php
Line Number: 1
Backtrace:
Solution:
If you want to access the CI framework from inside a plain function, you need to get an instance of CI.
function get_dates($id) {
$ci =& get_instance();
$class = $ci->db->query("SELECT * FROM schedule WHERE class_id='".$id."'");
$class = $class->result_array();
return $class;
}
function get_dates($id) {
$ci =& get_instance();
$class = $ci->db->query("SELECT * FROM schedule WHERE class_id='".$id."'");
$class = $class->result_array();
return $class;
}
0 comments:
Post a Comment