do something similar to the following
$result = mysql_query($sql, $cnx);
while ($someline = mysql_fetch_array($result)) {
print "$someline["name"] and $someline["address"]<br>\n";
}
assuming that your database has the following two columns:
name and address
jan-mike _