ich kenn mich mit php überhaupt nicht aus
dass ist der ganze code
Code:
<?
$site = 5;
if($pos == "") $pos = 0;
$page = $pos*$site;
?>
<?
$count = menge("guestbook");
$count = $count/$site;
?>
<table width="550" border="0" cellspacing="1" cellpadding="2" align="center">
<tr>
<td align="left"><br><br><b>Guestbook Pages:</b> ;<?php
if ($pos > 1) $last = $pos-1;
{ echo "<a href='$PHP_SELF?pos=$last'>last </a>";}
if ($count-$pos > 1) $next = $pos+1;
{ echo "<a href=\"$PHP_SELF?pos=$next'>next</a>";}
?></td>
</tr>
<td>
<?
for($z=0; $z<$count; $z++) {
$y = $z+1;
if ($pos != $z) {
echo "<a href=\"$PHP_SELF?pos=$z\">$y</a> | ";
} else {
echo "<b>$y</b> | ";
}
}
?>
</td>
</table>
die seitenzahlen werden richtig generiert
nur die funktion last next funktioniert überhaupt nicht
$pos ist der wert 0
$last nix
wie machst du dass genau?