/    Sign up×
Community /Pin to ProfileBookmark

News System (Pages)

I’ve created a news system in php…

Now I’ve tried to make the pages thing on the bottom.

For example: On the bottom of this forum in PHP section there is this “Page 1 of X” And you can select which page you want to go to. And this segments the news articles.

Now I have made it so that mysql segments it according to a get variable.

But I don’t know how to do the numbers in the page selection, especially when it comes to the last page, and I tried reverse output of numbers, but it’s not working.

Can someone direct me to how the professionals do this?

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@roscorJul 14.2008 — what you are after is called [B]pagination[/B], here are some links on webdeveloper and phpbuilder and Google
Copy linkTweet thisAlerts:
@DragonkaiauthorJul 15.2008 — Thanks, I didn't know what it was called.
×

Success!

Help @Dragonkai spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...