Ciao a tutti
Ho un problemino con la seguente galleria, mi dareste una mano?
Praticamente creo la tabella con le miniature e se clicco su una di queste dovrebbe apparire la corrispondente immagine sopra la tabella!Ma non va!
Sapeti dirmi cosa sbaglio? grazie mille
codice:
<?
$imagedir = "documenti/immagini"; //The image folder
$thumbdir = "documenti/miniature"; //The thumbnail folder
$colonne = 4; //How many images displayed per line
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
@import url(File/stile.css);
</style>
<head>
<body>
<table>
<tr>
<td>
<? if ($show != "") //show the current image if any
{
print "<img src=documenti/immagini/$show>
";
}
?>
</td>
</tr>
</table>
<table>
<tr>
<?php
$i=0;
$handle=opendir($imagedir);
while (false!==($file = readdir($handle))) {
if ($file != "." && $file != "..") {
print "<td align='center' valign='middle'>
</td>";
++$i;
if($i == $colonne) { print "</tr><tr>";
$i = 0;
}
}
}
closedir($handle);
?>
</tr>
</table>
</body>
</html>