NYCPHP Meetup

NYPHP.org

[nycphp-talk] question about retrieving records..

Hans Zaunere zaunere at yahoo.com
Tue Jun 17 21:50:12 EDT 2003


--- "Joshua S. Freeman" <jfreeman at amnh.org> wrote:
> My friend is doing some development on my box.  When he returns a row from
> a query, it isn't coming back as a hash  (i.e. $row['field_name']), but
only

Must be a Perl programmer  :)

> as an array (i.e. $row[n]). He tells me that all versions of php he's
> worked with have done this automatically. Is there some config setting I
> need to change on my system to manage this behavior? ...

mysql_fetch_assoc() will return a "hash" or associative array in PHP-speak.

H



More information about the talk mailing list