View Full Version : Quick PHP [HELP]
Assassinator
04-11-2007, 01:21 PM
Ok i have my code, but how do i do that "elseif" thing.
Here is my code..
<?php if($fetch->ghostmode == "1"){ echo" Ghostmode[<font color="green">ON</font>]";} ?>
But i want it so i can elseif ghostmode == "0" and then my text, any help?
Invent
04-11-2007, 01:23 PM
<?php
if($fetch->ghostmode == "1")
{
echo("Ghostmode[<font color=\"green\">ON</font>]");
}
elseif($fetch->ghostmode == "0")
{
echo("Ghostmode[<font color=\"red\">OFF</font>]");
}
?>
Josh-H
04-11-2007, 01:25 PM
<?php if($fetch->ghostmode == "1"){ echo" Ghostmode[<font color="green">ON</font>]";} elseif($fetch->ghostmode == "0") { echo" Ghostmode[<font color="red">OFF</font>]"; } ?>
Assassinator
04-11-2007, 01:26 PM
<?php
if($fetch->ghostmode == "1")
{
echo("Ghostmode[<font color=\"green\">ON</font>]");
}
elseif($fetch->ghostmode == "0")
{
echo("Ghostmode[<font color=\"red\">OFF</font>]");
}
?>
Thankyou rep+
Edit: Is there anyway i could only make it show for userlevel 4? -_-
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.