Welcome Guest, Not a member yet? Register   Sign In
Call to a member function row() on boolean
#1

Hi. I am new to codeigniter and I need help with an existing application I'm working on.  We changed the database that runs in ms sql. We created a beta that runs in the same server as the production. I tested the connection in my local unit, and connection runs no issue. But when I deployed it on Beta, it seems i can't run queries. I would get Fatal error: Call to a member function row() on boolean. I am able to display all tables in my database but can't seem to run a query. This table is existing in the database and has a content as well. Any help is very much appreciated.
Sample code below:
Code:
foreach ($tables as $table)
{
 echo "<br>".$table;

 if($table=="tblContents")
 {
     $query = $this->db->get("tblContents");

     foreach ($query->result() as $row)
     {
      echo "<br/>";
      echo "Name: ".$row->name;
      echo " Path: ".$row->path;
     }

 }
}
Reply


Messages In This Thread
Call to a member function row() on boolean - by tenshinadela - 10-05-2018, 02:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB