Re: While statement
| From: | David Robley | Date: | Wed, 30 Aug 2000 04:44:54 +0000 |
| Subject: | Re: While statement | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-14318@lists.php.net to get a copy of this message | ||
On 30 Aug, Alan Todd wrote:
> This is what i am trying to do
>
> if $site_name = 0 do this or if site_name = 1 do this
> if $user_mail =0 do this same as above
>
> any clue or did i throw u off as well..
>
> Alan
>
While???
if( ($sitename == 0) || ($sitename ==1) || ($usermail==0) ) {
do_things();
}
Assuming you mean to do $thing if $sitename==0 or $sitename==1 or
$usermail==0
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA