Welcome Guest, Not a member yet? Register   Sign In
Two almost identical methods but one failing
#3

[eluser]edjon2000[/eluser]
Oh! (lots of really bad words you wouldn't want your mother to know that you knew), it was the final return $query statement that was missing)

Thank you cahva Smile

edit ... Actually I never thought about defining the $query variable as FALSE to start with although, it would make for better programming practices, so whilst it is not needed in this instance it is probably a good idea to initialise all variables before they are used, I generally do that with my $data arrays prior to building views, form input statements etc

What do you think ?

Jon


Messages In This Thread
Two almost identical methods but one failing - by El Forum - 02-12-2011, 06:34 PM
Two almost identical methods but one failing - by El Forum - 02-12-2011, 09:08 PM
Two almost identical methods but one failing - by El Forum - 02-12-2011, 11:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB