Can anyone tell me what is wrong with this?
PHP Code:<?php if($info->rank =='Official Bliss Godfather'){
"<b><font color=red>Official Bliss Godfather</font>";
}
?>
Printable View
Can anyone tell me what is wrong with this?
PHP Code:<?php if($info->rank =='Official Bliss Godfather'){
"<b><font color=red>Official Bliss Godfather</font>";
}
?>
Add echo before "<b><font color=red>Official Bliss Godfather</font>"; to output it.
I dont get any errors.Just the rank isnt red.
<font color="red">
Edit:
If you use it in that snipped you'll need it like:
<font color=\"red\">
Post the whole code, not just that snippet.
PHP Code:<div align="right"><font color="grey"><b>Rank:</b></font></div>
</div></td>
<td width="25%"><div align="left">
<?php if($info->rank =='Official Bliss Godfather'){
echo"<b><font color=red>Official Bliss Godfather</font>";
}
?>
<b><font color=white><?=$fetch->rank?></b></div></td>
Why are you adding:
WhenPHP Code:<?php if($info->rank =='Official Bliss Godfather'){
echo"<b><font color=red>Official Bliss Godfather</font>";
}
Gets the rank for you?PHP Code:<?=$fetch->rank?>
If you wanted to make it red then you could just change the html before the $fetch->rank.