1

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 is the table name
    return $query->result();                   // Line 71
}

May I know how to fix it? thanks in advance.

1
  • use any good php editor like netbeans or eclipse Commented Apr 9, 2013 at 12:32

1 Answer 1

1

You're missing a semicolon here:

$query = $this->db->get('tbl_studentreg'); //semicolon added
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.