Ho risolto nel seguente modo:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title> Offerte Scarpe</title>
<link href="tabella.css" rel="stylesheet" type="text/css">
</head>
<body>
<font size ='4px'> <p align="center">OFFERTE </font></p>
<table>

<?php

include ("config4.php");
//include ("mostra.php");
$result = mysql_query("SELECT * FROM test{$test}");
if (!$result) {
die("Query to show fields from table failed");
}

$fields_num = mysql_num_fields($result);

echo "<h1>Last Minute {$test}</h1>";
echo "<table border='1'><tr>";
// printing table headers

for($i=0; $i<$fields_num; $i++)
{
$field = mysql_fetch_field($result);
echo "<td>{$field->name}</td>";
}
echo "</tr>\n";
// printing table rows
while($row = mysql_fetch_row($result))

{
echo "<tr>";

// $row is array... foreach( .. ) puts every element
// of $row to $cell variable
//foreach($row as $cell)
echo "<td>$row[0]</td>";
echo "<td>$row[1]</td>";
echo "<td>$row[2]</td>";
echo "<td>$row[3]</td>";
echo "<td>$row[4]</td>";
echo "<td>[img].$row[5].[/img]</td>";
echo "<td>link per Visualizzare</td>";
echo "</tr>\n" ;
echo "</tr>\n";
}
mysql_free_result($result);
?>
</body></html>

Molto molto semplice...