http://www.php.net/manual/en/function.msql-fetch-array.php
Hope this helps.
"Ashley M. Kirchner" wrote:
> I need to convert an MySQL result into an Array...somehow. The
> query returns the following:
>
> +----+-----------+
> | ID | Project |
> +----+-----------+
> | 1 | Home |
> | 2 | Work |
> | 3 | Family |
> | 4 | Misc. |
> | . | ... |
> | . | ... |
> +----+-----------+
>
> ...which I want to convert into:
>
> Array(1 => "Home", 2 => "Work", 3 => "Family", 4 => Misc.", etc....);
>
> What's the best way to do this.
>
> AMK4
>
> --
> W |
> | I haven't lost my mind; it's backed up on tape somewhere.
> |____________________________________________________________________
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Ashley M. Kirchner <mailto:[EMAIL PROTECTED]> . 303.442.6410 x130
> SysAdmin / Websmith . 800.441.3873 x130
> Photo Craft Laboratories, Inc. . eFax 248.671.0909
> http://www.pcraft.com . 3550 Arapahoe Ave #6
> .................. . . . . Boulder, CO 80303, USA
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]