note 2342 modified in odbc_num_rows by ronabop

From: Date: Wed, 04 Oct 2000 15:23:42 +0000
Subject: note 2342 modified in odbc_num_rows by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-6054@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); http://www.php.net/manual/function.odbc-num-rows.php

« previous php.notes (#6054) next »