Re: Pulling data from a DB with PHP
| From: | (Philip Hallstrom) | Date: | Tue, 01 Aug 2000 22:31:07 +0000 |
| Subject: | Re: Pulling data from a DB with PHP | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-1688@lists.php.net to get a copy of this message | ||
Take a look at odbc_num_rows() in the manual and/or odbc_fetch_row() to
grab the first row (which I don't think advances the pointer)
-philip
In article <F143ugGZcgr4Y36Eiou00004124@hotmail.com>,
Matthew Podwysocki <gcprweb@hotmail.com> wrote:
>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