Grazie per la dritta
ti potrei chiedere se mi pui postarre il codice per vedere le immagini prese da un database in una lista io avevo fatto cosi ma nn funziona

$query = "SELECT * FROM categoria,prodotto WHERE categoria.idCategoria = prodotto.Categoria_idCategoria AND idCategoria=1";
$result = mysql_query($query,$mysqli);
echo "<table class=\"larghezza\">
<tr class=\"larghezza\">
<td class=\"larghezza\">immagine</td>
<td class=\"larghezza\">Nome</td>
<td class=\"larghezza\">descrizione</td>
<td class=\"larghezza\">Prezzo</td>
<td class=\"larghezza\">Acquista</td>
</tr>";
while($ros=mysql_fetch_array($result))
{
header("Content-Type: " . $ros["tipo"]);
echo "<tr class=\"larghezza\"><td class=\"larghezza\">";
echo $ros["dati"];
echo"</td><td class=\"larghezza\">";
echo $ros['Nome'];
echo"</td><td class=\"larghezza\">";
echo $ros['Descrizione'];
echo"</td><td class=\"larghezza\">";
echo $ros['Prezzo'];
echo"<td>
</tr>";