CJ - Twitch Posted January 30, 2010 Posted January 30, 2010 Could you help me please. if($r['hospital']) { $h="[img=images/icons/hosp.png]"; This code seems not to work. How could I fix this? Thanks, CJ Quote
bluegman991 Posted January 31, 2010 Posted January 31, 2010 this should work if($r['hospital']) { $h="[img=images/icons/hosp.png]"; } u forgot the } at he end Quote
bluegman991 Posted January 31, 2010 Posted January 31, 2010 u have to use a different variable than $h because its a variable that is already defined that u need try this if($r['hospital']) { $hos="[img=images/icons/hosp.png]"; } Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.