if then else

From: Date: Wed, 04 May 2005 07:20:20 +0000
Subject: if then else
Groups: php.general 
Request: Send a blank email to php-general+get-214389@lists.php.net to get a copy of this message
Can anyone help with a statement, ive tried but it never works. I need to show a value if it is set to a specific value ie: At the moment If a user is logs in a record is updated from 'away' to 'online'---so i want an echo statement to show a value from another table if they are set to online or else they show another value. (2 seperate tables).

« previous php.general (#214389) next »