CodeIgniter getting Value from Database to display -
error ----
parse error: syntax error, unexpected t_return in c:\wamp\www\jobsite\application\models\model_users.php on line 71
public function profile_data() { $this->load->database(); $query = $this->db->get('tbl_studentreg') //tbl_studentreg table name return $query->result(); // line 71 }
may know how fix it? in advance.
you're missing semicolon here:
$query = $this->db->get('tbl_studentreg'); //semicolon added
Comments
Post a Comment