Ho provato a fare cosi e ora le immagini le vedo pero non é giusto il modo in cui me le stampa.

codice:

Codice PHP:
<?php

// Includo il file di configurazione

include"config.inc.php";

?>

<?php

// Query per estrapolare il nome del file

mysql_select_db($db_name$conn) or die ("Errore nella selezione del database: " mysql_error());
$query_img "SELECT * FROM _tb_image";
$result mysql_query($query_img$conn) or die ("Errore: " mysql_error());
// $row_img = mysql_fetch_assoc($result);


?>
<html>
<head>
<title>Test fotoalbum</title>
</head>

<body>



<?php
$i 
0;
echo 
"<table border=\"1\"><tr>";
 while(
$row_img mysql_fetch_array($result))
{
echo 
"<td>";
echo 
"[img]image/$row_img[img_name][/img]";
echo 
"</td>";
if (
$i++%== 0
echo 
"</tr><tr>";
}
echo 
"</tr></table>";
?>
</p>
</body>
</html>
mi stampa cosi:


foto1 - niente
foto2 - foto3
foto4 - foto5
foto6 - niente

non capisco dove sbaglio, chi mi sa dire un modo corrette pf!!