note 2342 deleted from function.odbc-num-rows by jimw
| From: | jimw@php.net | Date: | Mon, 17 Dec 2001 22:31:47 +0000 |
| Subject: | note 2342 deleted from function.odbc-num-rows by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23027@lists.php.net to get a copy of this message | ||
Another way of looping through found rows ( in case your driver doesn't return a correct number
of found rows ) is this do..while loop:
do{
$getRow;
$getRow=odbc_Fetch_Row($db_result);
if($getRow){
$dayNms[]=odbc_result($db_result,"day");
$dayIds[]=odbc_result($db_result,"id");
} else {
$numAffected=False;
}
} while ($numAffected);