error in pagination

#4
[eluser]aquary[/eluser]
In that case, result_array() should already return empty array.

From the userguide
result_array()
This function returns the query result as a pure array, or an empty array when no result is produced.

PS. Somehow, I remembered seeing the $this->db->result(); returned FALSE when it's empty... have to check about this.


Messages In This Thread
error in pagination - by El Forum - 02-23-2012, 04:39 AM
error in pagination - by El Forum - 02-23-2012, 06:51 AM
error in pagination - by El Forum - 02-23-2012, 07:55 AM
error in pagination - by El Forum - 02-23-2012, 08:36 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.