jimmytubbs Posted April 27, 2008 Share Posted April 27, 2008 hi i want make it show your gender (picture) by your name ive tried it but it doesnt work if($ir['gender']=male) { $u = "<font color=>{$ir['username']}</font>"; $m="[img=male.gif]"; } else { if($ir['gender']=female) { $u = "<font color=>{$ir['username']}</font>"; "$f='[img=female.gif]'"; } } and i have the variables by name as well im using v2 if that helps :? cheers jimmytubbs:? Quote Link to comment Share on other sites More sharing options...
Spudinski Posted April 27, 2008 Share Posted April 27, 2008 Re: please help me <?php if($ir['gender'] == 'Male') { $u = "<font color=>{$ir['username']}</font>"; $m = "[img=male.gif]"; } else if($ir['gender'] == 'Female') { $u = "<font color=>{$ir['username']}</font>"; $f = "[img=female.gif]"; } ?> Read this: http://www.php.net/manual/en/language.operators.php http://www.php.net/manual/en/language.c ... ctures.php Quote Link to comment Share on other sites More sharing options...
jimmytubbs Posted April 27, 2008 Author Share Posted April 27, 2008 Re: please help me soz now it doesnt come up with anything :? :| Quote Link to comment Share on other sites More sharing options...
Spudinski Posted April 27, 2008 Share Posted April 27, 2008 Re: please help me soz now it doesnt come up with anything :? :| How and where are you using it? Quote Link to comment Share on other sites More sharing options...
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.