ok, like BP ur the best, but i tried adding it and i get errors, or only 1 table appears, so how owuld i input it to
<html>
<head>
<basefont face="Arial">
</head>
<body>
<?php
// set server access variables
$host = "db301.perfora.net";
$user = "dbo155804794";
// open connection
$connection = mysql_connect($host, $user, $pass) or die ("Unable to connect!");
// select database
mysql_select_db($db) or die ("Unable to select database!");
// create query
$query = "SELECT * FROM games ORDER by id DESC LIMIT 6";
// execute query
$result = mysql_query($query) or die ("Error in query: $query. ".mysql_error());
// see if any rows were returned
if (mysql_num_rows($result) > 0) {
// yes
// print them one after another
echo "<table width='100%' border='0' cellspacing='0' cellpadding='0'>";
while(list($id, $title, $picturepath, $console, $text, $genre) = mysql_fetch_row($result)) {
echo "<tr>";
echo "<td width='3%' bgcolor='#464646' align='center' valign='middle'><img src='$picturepath'/></td>";
echo "<td width='1%' bgcolor='#464646' > </td>";
echo "<td width='96%' bgcolor='#464646' valign='top'><strong>";
echo "<font size=5 color=#79CEF7>$title</font></strong> <font color=#ffffff>($console)</font>";
echo "<br /><font color='#FFFFFF'>$text<br /></font>";
echo "<font size=2 color= #79CEF7>Genre: $genre</font> </td>";
echo "</tr>";
echo "<tr>";
echo "<td align='center' valign='middle' bgcolor='#FFFFFF'></td>";
echo "<td bgcolor='#FFFFFF'><font size=1></font></td>";
echo "<td valign='top' bgcolor='#FFFFFF'></td>";
echo "</tr>";
}
echo "</table>";
}
else {
// no
// print status message
echo "No rows found!";
}
// free result set memory
mysql_free_result($result);
// close connection
mysql_close($connection);
?>
</body>
</html>