Buonasera tutti del forum, ho questa stringa di codice, vorrei che le immagini venissero caricate in una tabella quando avvio lo script. Non so dove inserire il codice table. Grazie.
PHP:
<?php
$db = mysql_connect($host, $user, $password)
or die (mysql_error());
mysql_select_db($database, $db)
or die (mysql_error());
$result = mysql_query("SELECT * FROM $tabella")or die(mysql_error());
while ($row = mysql_fetch_array($result)) {
$percorso2 = $row['percorso'];
$commento2 = $row['commento'];
echo "<a class=\"example-image-link\" href=\"../immagini_generale/$percorso2\" data-lightbox=\"example-set\" title=\"$commento2\">
<img class=\"example-image\" src=\"../immagini_generale/$percorso2\" alt=\"Plants: image 4 0f 4 thumb\" width=\"150\" height=\"150\" align=\"right\"/><p class=\"auto-style2\"><strong>  $commento2</strong></p></a>";
}
mysql_close($db);
?>
Ultima modifica di un moderatore: