Welcome Guest, Not a member yet? Register   Sign In
Array To String error / undefined $query
#8

(This post was last modified: 08-16-2016, 03:20 AM by InsiteFX.)

If your using the $data array in your MY_Controller then you need to call it using $this->data

PHP Code:
public function viewexisting()
{
 
  $query $this->db->query("SELECT * FROM docs");
 
  return $query->result_array();  

What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Array To String error / undefined $query - by InsiteFX - 08-16-2016, 03:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB