Pulling data from a DB with PHP
| From: | Matthew Podwysocki | Date: | Tue, 01 Aug 2000 20:15:46 +0000 |
| Subject: | Pulling data from a DB with PHP | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-1683@lists.php.net to get a copy of this message | ||
The problem I have is that if I pull a data record before a loop, and then go into a while(odbc_fetch_row($result)) it will skip automatically to the next record. What I want to check is to see if the dataset is null, and if it just skips to the next record, of course I'm going to get a null if I'm only pulling out one record. Is there a way to check for a null dataset? And has anyone else ran into this problem? And is there an easy workaround?
Regards,
Matt Podwysocki
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com