note 4374 deleted from function.odbc-num-rows by jimw
| From: | jimw@php.net | Date: | Mon, 17 Dec 2001 22:31:55 +0000 |
| Subject: | note 4374 deleted from function.odbc-num-rows by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23029@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