Reply to Re: DO WHILE with OR not working?

Your name:

Reply:


Posted by Justin Koivisto on 10/10/45 11:36

Eric Rechter wrote:
> Hello I want to use the DO WHILE statement with an OR ( || )
>
> like this:
>
> do{
> .....
> }while ($found != 1 || $count == 10);
>
> But this is nog working in PHP 4.4 . Anybody know how to do this?

What is the rest of the loop, and what are the values of $count and
$found before it starts?

Your while is saying to do the loop again only if $found is not 1 and
$count *is* 10... possibly should be:

while ($found != 1 || $count < 10);

?? without knowing what you want to do, it's impossible to say...

--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com

[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

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