Re: Foreach loop with empty values

From: Date: Sat, 14 Jun 2003 04:13:40 +0000
Subject: Re: Foreach loop with empty values
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-151451@lists.php.net to get a copy of this message
Got it fixed. Never mind. Thanks At 10:49 PM 6/13/2003, CDitty wrote:
I have a foreach loop in a while loop that retrieves information from my database. The foreach loop works fine if there is data in the database for that loop. But if nothing is found in the database, I get a "Invalid argument supplied" error. Can anyone suggest a fix for this? The foreach loop is a standard foreach. Code foreach($pid as $netPid){
        echo "$netPid<br>";
} Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


« previous php.general (#151451) next »