Chi può darmi una mano ??
ho realizzato alcune pagine di una fotogallery, l'impaginazione ba bene e mi crea le pagine sucessive, quando clicco sulle nuove pagine le foto le trova, pero non mi visualizza il menù che c'è sulla destra che sono dei file che estraggo da un datatbase. dovè l'errore, vi posto il codice della pagina.
:hammer:
<html>
<head>
<link rel="StyleSheet" href="style2.css" type="text/css" >
</head>
<body>
<center>
<div id="container">
<table border="0" width="980" cellpadding="0" cellspacing="0" id="table1">
<tr>
<td><? include('intestazione.inc.php') ?></td>
</tr>
</table>
<table border="0" width="980" cellspacing="0" cellpadding="0" id="table2">
<tr>
<td>
<div id="content">
<? include('lefoto1-centrale.php') ?></div>
</td>
<td width="180">
<div id="navigationdx">
<? include('menudx.inc.php') ?></div> <br><br><br><br></td>
</tr>
</table>
<? include("foot.inc.php"); ?>
</body>
</html>
questi sono gli include della pagina
questa è la pagina
<div id="content">
<table border="0" width="700" cellspacing="0" cellpadding="0" id="table2">
<tr>
<td width="700">
<table border="0" width="700" id="table3"><tr><td>
<div class="textimage">
<div class="block2">Ollolai >>>
<hr size="1"></div>
</td></tr></table>
</td>
</tr>
</table>
<table border="0" width="739" id="table1">
<tr>
<td width="158" style="border-right-style: outset; border-right-width: 1px">
<!-- Start of NavBar definition -->
<TABLE border="0" cellspacing="0" cellpadding="0">
<tr><td><a href="dovesiamo.php" target="_top" onmouseout="turn_off('i_video_B1')" onmouseover="turn_over('i_video_B1')" ><img name="i_video_B1" src="i_video_B1.gif" alt="Dove siamo" width="157" height="26" border="0"></a></td></tr>
<tr><td><a href="ilpaese.php" target="_top" onmouseout="turn_off('i_video_B2')" onmouseover="turn_over('i_video_B2')" ><img name="i_video_B2" src="i_video_B2.gif" alt="Il paese Ollolai" width="157" height="26" border="0"></a></td></tr>
<tr><td><a href="festeesagre.php" target="_top" onmouseout="turn_off('i_video_B3')" onmouseover="turn_over('i_video_B3')" ><img name="i_video_B3" src="i_video_B3.gif" alt="Feste e sagre" width="157" height="26" border="0"></a></td></tr>
<tr><td><a href="lefoto.php" target="_top" onmouseout="turn_off('i_video_B4')" onmouseover="turn_over('i_video_B4')" ><img name="i_video_B4" src="i_video_B4.gif" alt="Le foto del paese e d'intorni" width="157" height="26" border="0"></a></td></tr>
<tr><td><a href="http://it.youtube.com/watch?v=erOMRxspHTM" target="_blank" onmouseout="turn_off('i_video_B5')" onmouseover="turn_over('i_video_B5')" ><img name="i_video_B5" src="i_video_B5.gif" alt="I video su youtube" width="157" height="26" border="0"></a></td></tr>
</TABLE>
<!-- End of NavBar definition -->
<br><br><center>
<img src="Sardegna.gif"></center>
<br><br> <center>
<hr>
<img src="loghi/gemellaggio.jpg">
<img src="loghi/logo-pignola.jpg">
<hr>
</center>
<br>
<a href='http://www.ilmeteo.it/meteo/Sardegna' target='blanck' title='il tempoprevisto in Sardegna'>
<img src='loghi/meteo.jpg' border='0' alt='il tempo previsto in Sardegna'> </a>
<br><br>
</td>
</td><td width="10"></td>
<td width="600">
<div class="block6"> Le foto
<hr color="#0066CC" align="left" size="1" noshade>
</div>
<br><br>
<center>
<table width="600" height='540' border="0"><tr><td>
<font face="times new roman" size="5" color="red"><b><center>FOTOGALLERY </font></b><font face="times new roman" size="2" color="#000000"> (Clicca sulle foto per ingrandirle)<br><br><br>
<table width="400" border="1">
<?
include("datastring.inc.php");
$db = mysql_connect($db_host, $db_user, $db_password);
if ($db == FALSE)
die ("Errore nella connessione. Verificare i parametri nel file config.inc.php");
mysql_select_db($db_name, $db)
or die ("Errore nella selezione del database. Verificare i parametri nel file config.inc.php");
?>
<?
$id=$_GET['id'];
if (!isset($_GET['start']) OR $_GET['start']<0)
{
$start = 0;
}
else
{
$start = $_GET['start'];
}
$step = 6;
$query = "SELECT id,foto1,foto,descrizione FROM fotoantiche ORDER BY id DESC LIMIT $start,$step";
$result = mysql_query($query, $db);
$s=1;
while ($row = mysql_fetch_array($result)){
if ($count==0){$count++;
echo "
<tr>
<td>
</td>
";}
$alt=$s/2;
$alt2=bcdiv($s,2);
$s++;
if($alt!=$alt2){echo"
</tr>";}
echo "<td>
<center><a href='http://www.linea3000.com/$row[foto]' target='_blank'> <img src='http://www.linea3000.com/$row[foto1]' border='0'> </a>
<br>
$row[descrizione]</center>
</td>";
if($alt==$alt2){echo"</tr>";}
}
?>
</table>
<br>
<center>
<table width=300 border=1><tr>
<td width=100>
<?
if ($start>0)
{ $start_back = $start - $step;
echo "<a href=lefoto1.php?a=$a_back>precedenti</a>";
}
?>
</td>
<?
$query = "SELECT count(*) AS tot FROM fotoantiche";
$result = mysql_query($query, $db);
$row = mysql_fetch_array($result);
$pages = intval(($row[tot]-1) / $step)+1;
?>
<td width=60% align=center>
<?
for ($i=0; $i<$pages AND $i<20
; $i++)
{ $start_page = $i * $step;
echo "<a href=lefoto1.php?start=$start_page>" . ($i+1) . "</a> ";
}
?>
</td>
<td width=20%>
<?
if ($start + $step < $row[tot])
{ $start_next = $start + $step;
echo "<a href=lefoto1.php?start=$start_next>successivi</a>";
}
?>
</td>
</tr></table>
<br><br><br>
</td>
</tr></table></center>
</td>
</tr>
</table>
</div>
ho realizzato alcune pagine di una fotogallery, l'impaginazione ba bene e mi crea le pagine sucessive, quando clicco sulle nuove pagine le foto le trova, pero non mi visualizza il menù che c'è sulla destra che sono dei file che estraggo da un datatbase. dovè l'errore, vi posto il codice della pagina.
:hammer:
<html>
<head>
<link rel="StyleSheet" href="style2.css" type="text/css" >
</head>
<body>
<center>
<div id="container">
<table border="0" width="980" cellpadding="0" cellspacing="0" id="table1">
<tr>
<td><? include('intestazione.inc.php') ?></td>
</tr>
</table>
<table border="0" width="980" cellspacing="0" cellpadding="0" id="table2">
<tr>
<td>
<div id="content">
<? include('lefoto1-centrale.php') ?></div>
</td>
<td width="180">
<div id="navigationdx">
<? include('menudx.inc.php') ?></div> <br><br><br><br></td>
</tr>
</table>
<? include("foot.inc.php"); ?>
</body>
</html>
questi sono gli include della pagina
questa è la pagina
<div id="content">
<table border="0" width="700" cellspacing="0" cellpadding="0" id="table2">
<tr>
<td width="700">
<table border="0" width="700" id="table3"><tr><td>
<div class="textimage">
<div class="block2">Ollolai >>>
<hr size="1"></div>
</td></tr></table>
</td>
</tr>
</table>
<table border="0" width="739" id="table1">
<tr>
<td width="158" style="border-right-style: outset; border-right-width: 1px">
<!-- Start of NavBar definition -->
<TABLE border="0" cellspacing="0" cellpadding="0">
<tr><td><a href="dovesiamo.php" target="_top" onmouseout="turn_off('i_video_B1')" onmouseover="turn_over('i_video_B1')" ><img name="i_video_B1" src="i_video_B1.gif" alt="Dove siamo" width="157" height="26" border="0"></a></td></tr>
<tr><td><a href="ilpaese.php" target="_top" onmouseout="turn_off('i_video_B2')" onmouseover="turn_over('i_video_B2')" ><img name="i_video_B2" src="i_video_B2.gif" alt="Il paese Ollolai" width="157" height="26" border="0"></a></td></tr>
<tr><td><a href="festeesagre.php" target="_top" onmouseout="turn_off('i_video_B3')" onmouseover="turn_over('i_video_B3')" ><img name="i_video_B3" src="i_video_B3.gif" alt="Feste e sagre" width="157" height="26" border="0"></a></td></tr>
<tr><td><a href="lefoto.php" target="_top" onmouseout="turn_off('i_video_B4')" onmouseover="turn_over('i_video_B4')" ><img name="i_video_B4" src="i_video_B4.gif" alt="Le foto del paese e d'intorni" width="157" height="26" border="0"></a></td></tr>
<tr><td><a href="http://it.youtube.com/watch?v=erOMRxspHTM" target="_blank" onmouseout="turn_off('i_video_B5')" onmouseover="turn_over('i_video_B5')" ><img name="i_video_B5" src="i_video_B5.gif" alt="I video su youtube" width="157" height="26" border="0"></a></td></tr>
</TABLE>
<!-- End of NavBar definition -->
<br><br><center>
<img src="Sardegna.gif"></center>
<br><br> <center>
<hr>
<img src="loghi/gemellaggio.jpg">
<img src="loghi/logo-pignola.jpg">
<hr>
</center>
<br>
<a href='http://www.ilmeteo.it/meteo/Sardegna' target='blanck' title='il tempoprevisto in Sardegna'>
<img src='loghi/meteo.jpg' border='0' alt='il tempo previsto in Sardegna'> </a>
<br><br>
</td>
</td><td width="10"></td>
<td width="600">
<div class="block6"> Le foto
<hr color="#0066CC" align="left" size="1" noshade>
</div>
<br><br>
<center>
<table width="600" height='540' border="0"><tr><td>
<font face="times new roman" size="5" color="red"><b><center>FOTOGALLERY </font></b><font face="times new roman" size="2" color="#000000"> (Clicca sulle foto per ingrandirle)<br><br><br>
<table width="400" border="1">
<?
include("datastring.inc.php");
$db = mysql_connect($db_host, $db_user, $db_password);
if ($db == FALSE)
die ("Errore nella connessione. Verificare i parametri nel file config.inc.php");
mysql_select_db($db_name, $db)
or die ("Errore nella selezione del database. Verificare i parametri nel file config.inc.php");
?>
<?
$id=$_GET['id'];
if (!isset($_GET['start']) OR $_GET['start']<0)
{
$start = 0;
}
else
{
$start = $_GET['start'];
}
$step = 6;
$query = "SELECT id,foto1,foto,descrizione FROM fotoantiche ORDER BY id DESC LIMIT $start,$step";
$result = mysql_query($query, $db);
$s=1;
while ($row = mysql_fetch_array($result)){
if ($count==0){$count++;
echo "
<tr>
<td>
</td>
";}
$alt=$s/2;
$alt2=bcdiv($s,2);
$s++;
if($alt!=$alt2){echo"
</tr>";}
echo "<td>
<center><a href='http://www.linea3000.com/$row[foto]' target='_blank'> <img src='http://www.linea3000.com/$row[foto1]' border='0'> </a>
<br>
$row[descrizione]</center>
</td>";
if($alt==$alt2){echo"</tr>";}
}
?>
</table>
<br>
<center>
<table width=300 border=1><tr>
<td width=100>
<?
if ($start>0)
{ $start_back = $start - $step;
echo "<a href=lefoto1.php?a=$a_back>precedenti</a>";
}
?>
</td>
<?
$query = "SELECT count(*) AS tot FROM fotoantiche";
$result = mysql_query($query, $db);
$row = mysql_fetch_array($result);
$pages = intval(($row[tot]-1) / $step)+1;
?>
<td width=60% align=center>
<?
for ($i=0; $i<$pages AND $i<20
; $i++)
{ $start_page = $i * $step;
echo "<a href=lefoto1.php?start=$start_page>" . ($i+1) . "</a> ";
}
?>
</td>
<td width=20%>
<?
if ($start + $step < $row[tot])
{ $start_next = $start + $step;
echo "<a href=lefoto1.php?start=$start_next>successivi</a>";
}
?>
</td>
</tr></table>
<br><br><br>
</td>
</tr></table></center>
</td>
</tr>
</table>
</div>