Web Hosting Geeks | Web Hosting Experts
Need help? Call us 1(866)TOP-HOST

14120 reviews 1680 hosting providers

Questions & Answers

PHP IF statement not working

Jan 9, 2013 by Susan3
Hi all,
I am using PHP 5.4 and every time I use the IF statement, it just doesn’t work right.  I don’t get any errors but it is like it’s not there at all. Does anyone know what could be causing this?
Thanks..

1 Answer

0 votes
Jan 9, 2013 by SmartHost
Make sure that  in your comparison you are using ‘==’ and not ‘=’