note 17012 added to function.odbc-num-rows

From: Date: Thu, 22 Nov 2001 09:43:52 +0000
Subject: note 17012 added to function.odbc-num-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-21141@lists.php.net to get a copy of this message
Hi ! To get number of rows in odbc result you can use this small function function GetNumRows($rs){ $NRows=1; $switch=true; do{ if (odbc_fetch_row($rs, $NRows)){ $NRows++; }else{ $switch=false; } }while ($switch); return $NRows-1; } -- http://www.php.net/manual/en/function.odbc-num-rows.php http://master.php.net/manage/user-notes.php?action=edit+17012 http://master.php.net/manage/user-notes.php?action=delete+17012 http://master.php.net/manage/user-notes.php?action=reject+17012

« previous php.notes (#21141) next »