TomBullock Posted February 22, 2008 Share Posted February 22, 2008 Hello This is part of my script: { echo "online"; } else { echo "offline"; } As you can see, there is the word 'online' and 'offline'. How do i make the word 'online' green and the word 'offline' red? Thanks Quote Link to comment Share on other sites More sharing options...
Orio Posted February 22, 2008 Share Posted February 22, 2008 You can output HTML: <?php echo "<span style=\"color: green;\">online</span>"; ?> Orio. Quote Link to comment Share on other sites More sharing options...
TomBullock Posted February 22, 2008 Author Share Posted February 22, 2008 Can i put that code on the same page under the current script? Quote Link to comment Share on other sites More sharing options...
TomBullock Posted February 22, 2008 Author Share Posted February 22, 2008 Ohh ive got it Thanks for your help 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.