note 15772 added to function.odbc-num-rows

From: Date: Tue, 02 Oct 2001 16:47:31 +0000
Subject: note 15772 added to function.odbc-num-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-18471@lists.php.net to get a copy of this message
Hi, had troubles with this as well and after quite a while and after reading several posts I came up with the following: $to_ret = 0; while(odbc_fetch_row($result)) $to_ret++; odbc_fetch_row($result,0); return $to_ret; just put it all in a function and I think it should do -- http://www.php.net/manual/en/function.odbc-num-rows.php http://master.php.net/manage/user-notes.php?action=edit+15772 http://master.php.net/manage/user-notes.php?action=delete+15772 http://master.php.net/manage/user-notes.php?action=reject+15772

« previous php.notes (#18471) next »