Thanks, that works quite well. I'm trying to get it so when there is more than three items in the database, it will start a new row.
I've edited your script to look like this, but it's not working properly. It inserts ""<tr><td><img src='{$row['image']}' /></td></tr>" as the image URL and on the page.
$result = mysql_query('SELECT image FROM specials') or die(mysql_error());
echo "<table>";
if ($result || (mysql_num_rows($result) > 0)){
while ($row = mysql_fetch_assoc($result))
$max_columns = 3;
{
echo "<tr><td><img src='{$row['image']}' /></td></tr>";
if(++$i == $max_columns){
echo "<tr><td><img src='{$row['image']}' /></td></tr>";
$i=0;
}}}
echo "</table>";
?>
Any ideas?