Ho buttato giù due righe me le puoi correggere?
include 'config.inc.php';
$sql = "SELECT id, type, immagine FROM immagini order by id desc";
$result = mysql_query($sql);
$lunghezza=mysql_num_rows($result);
echo "<table width=\"200\" border=\"1\">";
echo "<tr>";
for ($t=0; $t<$lunghezza;$t++)
{
$row=mysql_fetch_array($result);
$type = $row['type'];
$img = $row['immagine'];
header ("Content-type: ".$type);
echo "<td>[img].$img.[/img]</td>";
}
echo "</tr>";
echo "</table>";
Mi crea la tabella ma all'interno invece di esserci le immagini ci sono stringhe.
Come devo fare?