/ If I didn't make a mistake this should do it: /
$db = mysql_pconnect(); /connects to localhost standard/
mysql_select_db("Your_DB");
$theResult = mysql_query("SELECT * FROM table_name", $db);
while ($theRow = mysql_fetch_row($theResult))
{
for($x=0; $x < count($theRow); $x++)
{
echo $theRow[$x];
}
}