Jump to content

Output dynamic DB records into several pages


MrVon

Recommended Posts

I have created script that puts user information in MySQL database table called "Users" when they register.

Now i want to create page to show all the accounts in that table and some custom fields they filled in as well.

 

Like Name, Age, Sex.

My table is

 

1Name 2Age 3Sex 4Email

John  22  M  john@gmail.com

Kate 34 F kate@yahoo.com

etc...

 

I trying to show all users at once, so far i pulled info one by one successefully, and also queried that entire table trough array, but its creates huge list on one page i dont like this, i need to separate it to 10 accounts per page. How can i do that?

 

I also like page 1, page2, page3 be linkable from homepage is there way to make them have static page like http://site.com/users.php?pages=2.

 

Please advise.

Link to comment
Share on other sites

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.