DiscountASP.NET Forums                  

Go Back   DiscountASP.NET Forums > Site Programming, Development and Design > PHP

Notices

PHP Older perl/CGI questions are here as well.

Closed Thread
 
Thread Tools Search this Thread
Old 01-25-2012, 01:52 PM   #1
ArmyOps
 
Join Date: Jan 2012
Posts: 1
Online image

Hi, im new in php and just learning things.
Im trying to make a system that makes my variable into image, but im not actualy sure how.
I made 1 code but its not actualy works as i want.
PHP Code:
$online "$row[online]";
if (
"$row[online]" == "Yes") {
    echo 
"Image for Online";
}
else 
{
    echo 
"Image for Offline";

I wanted to make so, that i dont have to use $row['online'] cuz of " ' ' "
If row= yes then person is Online if No then hes offline.
but if i use $online or $row[online] nothing expires.
What i actualy did wrong?
ArmyOps is offline  
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to run my ASP NET code online mdean99 ASP.NET 4 07-25-2011 10:03 AM
My Website is run on (ASP Server) - (Microsoft Access 2000 Database) Houston Online ASP.NET 2 04-05-2007 06:46 AM
Building a better website like Yahoo like? More like Houston Online. Houston Online ASP.NET 1 08-21-2006 09:48 AM
Text image changes on the server jfong ASP.NET 1 05-12-2005 09:48 AM


All times are GMT -7. The time now is 04:39 PM.


vBulletin ©Jelsoft Enterprises Ltd.