note 2342 modified in odbc_num_rows by ronabop

From: Date: Sat, 26 Aug 2000 06:30:11 +0000
Subject: note 2342 modified in odbc_num_rows by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-3377@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:<br> <pre> 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); </pre> http://www.php.net/manual/function.odbc-num-rows.php

« previous php.notes (#3377) next »