I have a PHP code snippet that gets ignored, there is no parsing error, and I can't fiqure out why? Please help me if you can. The result of (getIt($mySite) returns a number between 0 and 2, yet this code is ignored??? if (getIt($mySite) == "0") echo "<img src=0.jpg>"; elseif (getIt($mySite) == "1") echo "<img src=1.jpg>"; else echo "<img src=2.jpg>"; Code (markup): Thanks!
what is getIt? Is that a custom function or something that is getting the $mySite data from $_GET or $_POST? Can you paste the code for that?
if (getIt($mySite) == "0") { echo "<img src=0.jpg>"; } elseif (getIt($mySite) == "1") { echo "<img src=1.jpg>"; } else { echo "<img src=2.jpg>"; } PHP: Format your code correctly please, also what is getIt()
getIt is a custom function...and I'm an ASP coder and new to PHP so thanks for the format correction...I need it.