Welcome Guest, Not a member yet? Register   Sign In
(SOLVED) doubt with free_result
#2

[eluser]bretticus[/eluser]
You must call free_result() before return. Set $anios->row_array(); to a variable and then call free_result() and then return that variable.

From the PHP manual...

Quote:If called from within a function, the return() statement immediately ends execution of the current function, and returns its argument as the value of the function call.


Messages In This Thread
(SOLVED) doubt with free_result - by El Forum - 03-18-2009, 12:44 PM
(SOLVED) doubt with free_result - by El Forum - 03-18-2009, 12:50 PM
(SOLVED) doubt with free_result - by El Forum - 03-18-2009, 01:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB