note 79470 deleted from control-structures.do.while by cmb

From: Date: Sun, 04 Dec 2016 12:26:04 +0000
Subject: note 79470 deleted from control-structures.do.while by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208215@lists.php.net to get a copy of this message
Note Submitter: jantsch at gmail dot com ---- Useful when you want to continue to read a recordset that was already being read like in: <? $sql = "select * from customers"; $res = mysql_query( $sql ); // read the first record if( $rs = mysql_fetch_row( $res ) ){ // do something with this record } // do another stuff here // keep reading till the end if( mysql_num_rows( $res )>1 ){ do{ // processing the records till the end }while( $rs = mysql_fetch_row( $res )); } ?>

« previous php.notes (#208215) next »