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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -