Connecting Tech Pros Worldwide Forums | Help | Site Map

How to Convert resource as array of array ?

dgs
Guest
 
Posts: n/a
#1: Nov 5 '07
I fired a query on a mysql db , and got the result for it, using

$result = mysql_query("SELECT * FROM population");

, where, $result is a resource......


now , i want to save the results as a ' .dbf' file, which requires one
of the parameters for its creation as array of arrays...
so , now i want to convert the $result variable as "array of array".

How to do that ?


Jerry Stuckle
Guest
 
Posts: n/a
#2: Nov 5 '07

re: How to Convert resource as array of array ?


dgs wrote:
Quote:
I fired a query on a mysql db , and got the result for it, using
>
$result = mysql_query("SELECT * FROM population");
>
, where, $result is a resource......
>
>
now , i want to save the results as a ' .dbf' file, which requires one
of the parameters for its creation as array of arrays...
so , now i want to convert the $result variable as "array of array".
>
How to do that ?
>
>
Start with http://us.php.net/manual/en/function...etch-array.php.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Closed Thread