note 98034 deleted from control-structures.while by danbrown

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note Submitter: Bachsau 

----

If you need a while....else, just get your statement into a var, then check it via if:

while ($data = something())
{
    echo 'Doing the loop!';
}
if (!data)
{
   echo 'Nothing to loop!';
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.