<%id=request("id")%>Juwelen Daems - Ramsel
C("Select * from tbguestbook where accepted=1"); $d = ceil($c / 2); if(!isset($_GET["s"])){ $s = 1; }else{ $s = $_GET["s"]; } $limit = 2; $p = 0; $result = $db->Q("Select * from tbguestbook where accepted=1 order by id desc LIMIT $limit OFFSET $s"); $nextpage = 1; $display10plus = ""; $display10min = ""; for($i=1;$i<=$d;$i++){ if($p==$i){ echo " HIER "; }else{ if($i > 1){ $nextpage = $nextpage + $limit; } if($i == 1){ $f = $s -2; if($s == 1){ echo "<< :: "; }else{ echo "<< :: "; } } if($s < 10 && $i < 11){ echo "" . $i . " :: "; } if($s > 10 && $i > 10){ echo "" . $i . " :: "; } if($i == $d){ $f = $s + 2; if($s == $d){ echo ">>"; }else{ echo ">>"; } } } } while($row = mysqli_fetch_array($result)){ echo "
" . $row["name"] . ""; echo "
"; echo $row["location"]; echo "
"; echo date('d-m-Y',strtotime($row["datum"])); //echo $row["datum"]; echo "

" . $row["content"] . "

"; echo "
"; } ?>
Uw bericht