Re: odbc_fetch_row

From: Date: Sun, 15 Apr 2001 23:52:07 +0000
Subject: Re: odbc_fetch_row
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-8577@lists.php.net to get a copy of this message
Randall, Try something like: if (!(odbc_result($result_identifier)) echo "result is null"; Best regards, Andrew -------------------------------------------- Andrew Hill . Director Technology Evangelism OpenLink Software . http://www.openlinksw.com Internet Data Integration Technology On 4/13/01 6:30 PM, "Randall Barber" <rdb55@email.byu.edu> wrote: > When I run a query, even if it is empty I still get a valid identifier for the > result. > > How do I determine that there is nothing in the result, even though the result > is valid (just empty)? > > I thought about odbc_fetch_row, but that moves the pointer forward and I don't > want that; there may be valid info. > I tried odbc_result'ing a COLUMN and it returns NULL not error, so I can't > test against that. > > One thought is to see if all columns in my query are NULL and then "No rows > were found". Is there a simpler way? > > How does odbc_result_all determine there is nothing present? > > Thanks > RDB >

« previous php.db (#8577) next »