Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Stronnicowanie problem, Problem ze zmianą tekstu
głupol
post
Post #1





Grupa: Zarejestrowani
Postów: 5
Pomógł: 0
Dołączył: 25.04.2006

Ostrzeżenie: (0%)
-----


<?php
$file = file("dane/newsy.txt");
if($perpage == FALSE) $perpage = 5;
if($pos == FALSE) $pos = 0;
$count = count($file);
for($i = $pos; $i < ($perpage+$pos); $i++)
{
if($i > $count-1) break;
$result = explode("|", trim($file[$i]));

echo "<li>$result[0] $result[1]\n";
}

echo "<div align=\"center\">[ ";
for($p = 0; $p < $count; $p++)
{
if(!($p % $perpage))
{
$pg = ($p/$perpage)+1;
if ($p == $pos)
{
echo "<strong>$pg</strong> ";
}
else
{
echo "<a href=\"?pos=$p\">$pg</a> ";
}
}
}
echo " ]</div>";
?>
Mam problem , tekst podzielony w txt nie zmienia się po naciśnieciu 1 2 3 (tzn nie przeskakuje do dalszej części tekstu Co jest źle (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)
Go to the top of the page
+Quote Post

Posty w temacie


Closed TopicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 23.12.2025 - 21:56