note 31516 added to function.odbc-num-rows

From: Date: Thu, 24 Apr 2003 17:08:26 +0000
Subject: note 31516 added to function.odbc-num-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-47037@lists.php.net to get a copy of this message
I solved the problem using two "while(odbc_fetch($result))", one for counting (on top of the table) and the other to populate the table: --- counting: ---- $result_count = odbc_exec($connection, $sql); while (odbc_fetch_row($result_count)) { $count++; } echo "Title"; if ($count) { echo "Total: <b>$count</b>."; } else { echo "No Records Found."; } ---- populating: ---- $result = odbc_exec($connection, $sql); while (odbc_fetch_row($result)) { (...) } odbc_close ($connection); -- http://www.php.net/manual/en/function.odbc-num-rows.php http://master.php.net/manage/user-notes.php?action=edit+31516 http://master.php.net/manage/user-notes.php?action=delete+31516 http://master.php.net/manage/user-notes.php?action=reject+31516

« previous php.notes (#47037) next »