Re: results testing

From: Date: Fri, 27 Jul 2001 18:01:49 +0000
Subject: Re: results testing
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-10842@lists.php.net to get a copy of this message
Dave. Is this what you mean? In the example below, you won't fall into the while loop unless you get a row back from the statement handle ($sth). $dbh = ibase_connect( $connect, $this->login, $this->passwd ) $sth = ibase_query( $sql, $dbh ); while ( $row = ibase_fetch_row ( $sth ) ) { // do something with $row array } HTH Jeffery Cann phpnet@SeaPort6.com wrote: > I have had no success finding a thread on the subject of how to test > results of a query. I know it can be positive without finding any rows. > What are the ways to test. > Dave >

« previous php.db (#10842) next »