[eluser]EdLongman[/eluser]
I get this error when ever I load my url an I don't have a clue what is wrong with it.
I have isolated the lines in which there is a problem and I think it this function in my model
Code:
class Book_model extends Model{
function getAll($table) {
$rows = $this->db->get($table);
if($rows->num_rows()>0){
foreach($rows->result() as $row){
$data[]=$row;
}
return $data;
}
}
When i comment out the function and
in particular this line,
Code:
$rows = $this->db->get($table);
I get other errors but the page loads.
Although when I comment out this line it works I think that the
source of the problem is actually this line,
Code:
if($rows->num_rows()>0){
and then its the
num_rows function.