Try sql_fetch_assoc()