[ciapug] strange php/mysql result
Dave J. Hala Jr.
dave at 58ghz.net
Tue Jan 22 12:12:23 CST 2008
I can't believe I missed that. Works like a charm. Thanks.
On Tue, 2008-01-22 at 11:54 -0600, Eric Junker wrote:
> Dave J. Hala Jr. wrote:
> > I don't understand where the elements [0],[1],[2] came from. Is there
> > a way to get mysql_fetch_array to return the array without the 0,1,2
> > elements?
>
> Use mysql_fetch_assoc() or mysql_fetch_array(,MYSQL_ASSOC)
>
> http://us.php.net/manual/en/function.mysql-fetch-assoc.php
>
> Eric
>
> _______________________________________________
> ciapug mailing list
> ciapug at cialug.org
> http://cialug.org/mailman/listinfo/ciapug
More information about the ciapug
mailing list