4_3 Archivio fotografico
$quanti=ssql("select count(*) FROM mc_strutture where tipo='Archivio'");
$conta=$start+1; //per creare avanti e indietro
$next=$start+8;
$previous=$start-8;
echo "Progetti in archivio: ".$quanti."
";
///////in fondo alla pagina
if ($previous>=0)
echo "
";
if ($next<=$quanti) //{
echo " ";
//} else
//echo "
".$quanti." | ".$quanti;
?>
|
|
 |
| 4_3 Archivio fotografico: |
$sql="select * from mc_strutture where tipo='Archivio' limit $start,8";
$Result=mysql_db_query($db, $sql, $conn);echo mysql_error();
while ($row=mysql_fetch_array($Result)) {
echo $row[2]." ";
$sql2="select * from mc_archivio_foto where id_prog=$row[0] ";
$Result2=mysql_db_query($db, $sql2, $conn);echo mysql_error();
while ($row2=mysql_fetch_array($Result2)) {
echo " ";
}
echo "
";
}
?>
|
|