Reply to Re: if then else

Your name:

Reply:


Posted by Jason Barnett on 05/04/05 16:23

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;
}

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация