devi usare le funzioni specifiche di php:
http://it.php.net/mysql


generalmente per scorrere la tabella si usa un ciclo while:
codice:
$st=mysql_query("SELECT campo FROM tabella") or die(mysql_error());
while($row=mysql_fetch_assoc($st))
    echo $row['campo'];