note 4374 modified in odbc_num_rows by ronabop
| From: | ronabop@php.net | Date: | Wed, 04 Oct 2000 15:24:30 +0000 |
| Subject: | note 4374 modified in odbc_num_rows by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-6056@lists.php.net to get a copy of this message | ||
how about saving yourself a lot of typing? :)
try
//----
if ( odbc_fetch_row($result, 1) ) {
do {
print("Name = " . odbc_result($result, "name"));
//-- rest of data pasting
} while ( odbc_fetch_row($result) );
} else {
print("No data in the record set");
}
there were a few superfluous decision structures in the above example
http://www.php.net/manual/function.odbc-num-rows.php