<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" /> <title></title> </head> <body xml:lang="pl"> <form method="GET"> <a href="index.php?tresc=home">home</a> <a href="index.php?tresc=strona1">strona1</a> <a href="index.php?tresc=strona2">strona2</a> <a href="index.php?tresc=strona3">strona3</a> </form> <?php include ('tresc.php'); ?> </body> </html>
no i plik tresc.php
<? $limit|=10; $teksthome="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20"; $tekststrona1="11 12 13 14 15 16 17 18 19 20"; $tekststrona2="21 22 23 24 25 26 27 28 29"; $tekststrona3=""; if($tresc==home) $calytekst=$teksthome;else{ if($tresc==strona1) $calytekst =$tekststrona1; else{ if($tresc== strona2) $calytekst =$tekststrona2;else{ if($tresc==strona3) $calytekst=$tekststrona3; else {$calytekst=$teksthome;}}}} $page|=0; for($z=$page*$limit;$z<($page+1)*$limit;$z++) { } if ($ilosc > $limit) { if (($ilosc%$limit) != 0) $l_stron = 1; else $l_stron = 0; $pomoc = (int)($ilosc/$limit); $l_stron = ($l_stron+$pomoc)-1; if ($page >= 1) { $pomoc = $page-1; } $i=0; while ($i <= $l_stron) { if ($page == $i) else $i++; } if ($page < $l_stron) { $pomoc = $page+1; } }?>
Niestety po kazdorazowym kliknieciu w wygenerowany link na dole nie dzieje się nic ... czałyczas jest strona home ... prosze o pomoc ...
Dziwne jest to że na moim localhoscie działa to prawidłowo, ale jak wrzucę to na zewnątrz np. ovh.pl ... to przestaje działać ...