Welcome Guest, Not a member yet? Register   Sign In
Strange Message: Undefined variable error
#4

[eluser]jstuardo[/eluser]
Hello... in fact $usuario is not an object yet, because $usuarios array is empty, so before foreach loop I used if (count($usuarios)) and the problem was solved.

Thanks
Jaime

[quote author="TheFuzzy0ne" date="1244842708"]Please post a print_r() of $usuarios. I suspect that it, like the error suggests, doesn't contain any objects.[/quote]


Messages In This Thread
Strange Message: Undefined variable error - by El Forum - 06-12-2009, 10:22 AM
Strange Message: Undefined variable error - by El Forum - 06-12-2009, 10:38 AM
Strange Message: Undefined variable error - by El Forum - 06-12-2009, 10:53 AM
Strange Message: Undefined variable error - by El Forum - 06-12-2009, 11:07 AM
Strange Message: Undefined variable error - by El Forum - 06-12-2009, 11:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB