note 47778 added to function.odbc-num-rows

From: Date: Mon, 29 Nov 2004 18:57:17 +0000
Subject: note 47778 added to function.odbc-num-rows
Groups: php.notes 
Request: Send a blank email to php-notes+get-81162@lists.php.net to get a copy of this message
To add to the note about using odbc_num_rows with the Tandem Driver: As mentioned, the Tandem driver will return -1 until the last row. To use this to your advantage for formatting Tandem output, you can simply say: while(odbc_num_rows($rs) == -1) { $row = odbc_fetch_object($rs); print $row->fieldname; } From there, you can format Tandem output as you normally would with mssql or mysql. ---- Manual Page -- http://www.php.net/manual/en/function.odbc-num-rows.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47778 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47778&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47778&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47778&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47778&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47778&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47778&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47778&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81162) next »