Welcome Guest, Not a member yet? Register   Sign In
return num_rows and query results
#5

[eluser]Samuurai[/eluser]
Thanks for that...

I'm a bit confused though... why can't I just count the array somehow at the PHP level, like the standard mysql_num_rows..?

I'm happy to just use the PHP functions rather than AR.. I think this will have to be done in the controller though..unless it's possible for a function in the model to return two values, one for the array containing the results and one for the number of rows..?


Messages In This Thread
return num_rows and query results - by El Forum - 05-29-2009, 11:10 AM
return num_rows and query results - by El Forum - 05-29-2009, 11:18 AM
return num_rows and query results - by El Forum - 05-29-2009, 11:30 AM
return num_rows and query results - by El Forum - 05-29-2009, 11:40 AM
return num_rows and query results - by El Forum - 05-29-2009, 11:56 AM
return num_rows and query results - by El Forum - 05-29-2009, 12:06 PM
return num_rows and query results - by El Forum - 05-29-2009, 12:09 PM
return num_rows and query results - by El Forum - 05-29-2009, 12:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB