Questo è il codice che inserisco per visualizzare le pagine, e funziona benissimo,
<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>

Ma quando si aprono le altre pagine un'altra parte del codice che importo con un include non funziona

<div id="navigationdx">

<? include('menudx.inc.php') ?></div>

questa parte non viene eseguita perchè ?