Re: if then else

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Anasta wrote:
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).

if ($online) { // connect to database 1 echo $stmt; } else { // connect to database 2 echo $stmt; }

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux