Welcome Guest, Not a member yet? Register   Sign In
DB doesn't have num_rows/numRows ??

In CodeIgniter 3 we could run a query then find if there were rows returned:

PHP Code:
$q $this->db->query('SELECT * FROM foo LIMIT 1');

$q->num_rows() == )

   $row $q->row(); 

In CI4 I don't see a way to check the number of rows, or if there was a row at all. How are you handling this? Can we get a numRows() please?

Messages In This Thread
DB doesn't have num_rows/numRows ?? - by skunkbad - 09-15-2018, 10:51 AM

Theme © iAndrew 2016 - Forum software by © MyBB