Depends on the database you are connecting to, PHP does all the work for you look at these:
MySql - [man]mysql_fetch_assoc/man
Postgres - [man]pg_fetch_assoc/man
Oracle - [man]ora_fetch_into/man
Sybase - [man]sybase_fetch_array/man
DBase - [man]dbase_get_record_with_names/man
Informix - [man]ifx_fetch_row/man
Ingres - [man]ingres_fetch_array/man
If I didn't list the database that you are using the look for it here: PHP Manual