mysql_fetch_assoc(result)

Description: Fetches a result row as an associative array.

Works the same way as mysql_fetch_array() but does not allow access to the result as a numeric array.

Note: mysql_fetch_array() is far more useful.

See also: mysql_fetch_array()

Get Sams Teach Yourself MySQL in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.