If you don't know the names of the fields or even how many there are, use this:
$query = mysql_query("SELECT * FROM your_table") or die(mysql_error());
while($row = mysql_fetch_assoc($query)) {
foreach($row as $key => $value) {
echo ucfirst(str_replace("_", " ", $key)) . ": " . $value . "<br>\n";
}
echo "<br><br>";
}
EDIT: the str_replace is incase you used underscores for spaces. That's what I do and in general what I've seen most people do.
Cgraz