Welcome Guest, Not a member yet? Register   Sign In
CODEIGNITER call to a member function num rows on boolean
#2

Hi

Change Below Code:
PHP Code:
if($query->num_rows() == 1// if the affected number of rows is one---LINE 19---
 
  {
 
      return true;
 
  }
 
  else
 
  {
 
      return false;
 
  
To:
PHP Code:
if($query !== FALSE && $query->num_rows() == 1// if the affected number of rows is one---LINE 19---
 
  {
 
      return true;
 
  }
 
  else
 
  {
 
      return false;
 
  
Reply


Messages In This Thread
RE: CODEIGNITER call to a member function num rows on boolean - by Bhavesh - 02-26-2016, 10:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB