if statement gone wrong |
[eluser]Rob @ iFetch[/eluser]
'=' != '==' To elaborate... "The comparison between $my_name and "someguy" was done with a double equal sign "==", not a single equals"="! A single equals is for assigning a value to a variable, while a double equals is for checking if things are equal." from http://www.tizag.com/phpT/if.php |
Messages In This Thread |
if statement gone wrong - by El Forum - 11-23-2010, 03:22 PM
if statement gone wrong - by El Forum - 11-23-2010, 03:37 PM
if statement gone wrong - by El Forum - 11-23-2010, 05:07 PM
|