Jump to content

Is there a way to auto generate pages?


Go to solution Solved by Shyke,

Recommended Posts

Hi, so i kinda planned to code a new project.

But i'm not quite sure about this.

 

I could imagine you could pull the pages out.

 

 

So let me explain.

 

 

 

So i believe google is generating these numbers automatically and automatically linking it to a page.

Is there a way to do that easily? Would help me alot.

post-172707-0-85574400-1409254912_thumb.png

 

So if i have 50 result per page.

Thats the thing i want!

 

If 50 result = > then new page!

And then it should create a new number down there.

 

 =)

Any questions?

ASK ME! :D

Link to comment
https://forums.phpfreaks.com/topic/290709-is-there-a-way-to-auto-generate-pages/
Share on other sites

Well, just think about it.

 

If you have, say, 210 results, how many pages are there? How do you calculate this number?

 

When you know that, all you need is a for loop and a way to include the page number in the URL. The latter can be as simple as adding a page parameter:

https://yoursite.com/list.php?page=123
  • Solution

Okay, i thought there was an easy fix. ^^

 

But i learned.

 

I will just create my own instead, just like Jacques1 pointed out! :)

------

There will be a follow up later when i'm done with a rating system. :)

Edited by Shyke
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.