Welcome Guest, Not a member yet? Register   Sign In
Custom backport of unbuffered_row in CI2
#2

Ok, obviously, the num_rows variable is not set before calling result_array() (this is for my other queries not using unbuffered_row).

So I should change this :
PHP Code:
if($query->num_rows 0

To this :
PHP Code:
if($query->num_rows() > 0


And I think it will work...
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
RE: Custom backport of unbuffered_row in CI2 - by includebeer - 01-06-2016, 11:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB