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>";
}
?>
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>";
}
?>
Well firstly could you tell us what errors you get? Also you need to define what $info is. Eg
PHP Code:$info = new class();
<font color="red">
Edit:
If you use it in that snipped you'll need it like:
<font color=\"red\">
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.
I want all the other ranks white, but "Official Bliss Godfather" Red..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.
Want to hide these adverts? Register an account for free!