How to Convert resource as array of array ?
am 05.11.2007 12:36:36 von dgs
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 ?
Re: How to Convert resource as array of array ?
am 05.11.2007 12:40:56 von Jerry Stuckle
dgs wrote:
> 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.mysql-fetch-array.php.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================