Don't know, what exactly you need, but maybe a simple slider would work. Get 5 posts from database and use slick for example (kenwheeler.github.io/slick/) with dots (you can style it as numbers).
Some sort of that.
Exactly what i need is pagination in php, where it will display one recent post from the database only in the homepage and display the previous post as a link
So the same for me. Get a few posts (or partial of posts like thumb, short description, id and slug), and in a loop make a condition: if first - show article (part of article) and if next - put just links. So you have to generate links by slug or by id (no idea, what your database looks like).
Has your website any CMS? Any framework? What's the technology used to build it?
Used php,sql,html,js and css
Only
Don't know, what exactly you need, but maybe a simple slider would work. Get 5 posts from database and use slick for example (kenwheeler.github.io/slick/) with dots (you can style it as numbers).
Some sort of that.
Exactly what i need is pagination in php, where it will display one recent post from the database only in the homepage and display the previous post as a link
So the same for me. Get a few posts (or partial of posts like thumb, short description, id and slug), and in a loop make a condition: if first - show article (part of article) and if next - put just links. So you have to generate links by slug or by id (no idea, what your database looks like).
Yeah this but display the post body for one post
Using php,getting the posts from the database
mysql_query()
Saw the code near to what i wanted,thanks