Ok i have my code, but how do i do that "elseif" thing.
Here is my code..
But i want it so i can elseif ghostmode == "0" and then my text, any help?PHP Code:<?php if($fetch->ghostmode == "1"){ echo" Ghostmode[<font color="green">ON</font>]";} ?>

Ok i have my code, but how do i do that "elseif" thing.
Here is my code..
But i want it so i can elseif ghostmode == "0" and then my text, any help?PHP Code:<?php if($fetch->ghostmode == "1"){ echo" Ghostmode[<font color="green">ON</font>]";} ?>
PHP Code:<?php
if($fetch->ghostmode == "1")
{
echo("Ghostmode[<font color=\"green\">ON</font>]");
}
elseif($fetch->ghostmode == "0")
{
echo("Ghostmode[<font color=\"red\">OFF</font>]");
}
?>
PHP Code:<?php if($fetch->ghostmode == "1"){ echo" Ghostmode[<font color="green">ON</font>]";} elseif($fetch->ghostmode == "0") { echo" Ghostmode[<font color="red">OFF</font>]"; } ?>
Last edited by Josh-H; 04-11-2007 at 01:26 PM.
Last edited by Assassinator; 04-11-2007 at 01:30 PM.
Want to hide these adverts? Register an account for free!