note 1712 deleted from ODBC functions by ronabop

From: Date: Thu, 17 Aug 2000 09:08:16 +0000
Subject: note 1712 deleted from ODBC functions by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-2068@lists.php.net to get a copy of this message
Is there a better way to get the number of columns and rows than this under a buggy Windows ODBC driver? <PRE> $result = odbc_result($query_id, 1); $cols = odbc_fetch_into($query_id, $rows, &$result); $rows = 1; while(odbc_fetch_into($query_id, $rows, &$result)) { $rows++; } $rows = $rows - 1; </PRE> That gives the right number of each but then it won't read the rows anymore. My assumption is it isn't letting me reset it to 1,1. Argh.

« previous php.notes (#2068) next »