I don’t know what’s wrong with my code. I’m a newbie. The prob is – Notice: Undefined variable: result [duplicate]

$result is not defined before (the if statement above does not count for this), that’s why you get this notice.

On top of your script, initialize

$result = FALSE;

and everythig is fine.

Leave a Comment