note 74125 added to function.odbc-num-rows
| From: | volandatdigitalshopdotru at osu1 dot php dot net | Date: | Mon, 26 Mar 2007 15:50:53 +0000 |
| Subject: | note 74125 added to function.odbc-num-rows | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124818@lists.php.net to get a copy of this message | ||
Today we find a BEST way to count number of rows with ODBC!
function best_odbc_num_rows($r1) {
ob_start(); // block printing table with results
(int)$number=odbc_result_all($r1);
ob_clean(); // block printing table with results
return $number;
}
----
Server IP: 195.222.164.18
Probable Submitter: 195.210.181.134
----
Manual Page -- http://www.php.net/manual/en/function.odbc-num-rows.php
Edit -- https://master.php.net/note/edit/74125
Del: integrated -- https://master.php.net/note/delete/74125/integrated
Del: useless -- https://master.php.net/note/delete/74125/useless
Del: bad code -- https://master.php.net/note/delete/74125/bad+code
Del: spam -- https://master.php.net/note/delete/74125/spam
Del: non-english -- https://master.php.net/note/delete/74125/non-english
Del: in docs -- https://master.php.net/note/delete/74125/in+docs
Del: other reasons-- https://master.php.net/note/delete/74125
Reject -- https://master.php.net/note/reject/74125
Search -- https://master.php.net/manage/user-notes.php