Posts: 1,168
Name: Dragos-Valentin
Location: Cluj-Napoca, RO
|
can you not use a for() ? let's say display 10 at a time:
PHP Code:
for ($i = 0; $i < $news_total; $i++) {
while (fmod($i, 10) !== 0) {
echo $news_array[$i];
}
next_page_link.
}
haven't tested it but it should work.
while the newsnumber/10 has a rest echoes the stuff...
you can replace 10 with whatever you want to use.
i'm sure there's a much easier solution ....
__________________
.
» Please remember to add to my Talkupation if you enjoyed my post. Thank you :)
.
|