[PHP-DB] how to put all rows into an array

2002-11-13 Thread John A DAVIS
Is there anyway to take a resultset and cram it into an array?

In VB it would be the GetRows function:
myArray = rs.GetRows


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DB] how to put all rows into an array

2002-11-13 Thread Marco Tabini
while ($a[] = mysql_fetch_row ($rs));

should work


Marco
-- 

php|architect - The magazine for PHP Professionals
The monthly worldwide magazine dedicated to PHP programmers

Come visit us at http://www.phparch.com!


On Wed, 2002-11-13 at 19:27, John A DAVIS wrote:
 Is there anyway to take a resultset and cram it into an array?
 
 In VB it would be the GetRows function:
 myArray = rs.GetRows
 
 
 -- 
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php