Che database stai utilizzando?
Quale codice utilizzi per estrarre i risultati?

Se utilizzi MySQL, vedi http://www.php.net/mysql_fetch_assoc