Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7163345
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:53:15+00:00 2026-05-28T13:53:15+00:00

I am using php mysql. First on form submission I run query on mysql

  • 0

I am using php mysql.

First on form submission I run query on mysql and get the row id -> store it in session array.

For displaying the result I have modified one php array pagination script to create pagination of session array with first,prev,next,last, Jump to page number functionality. For that pagination I have taken the reference from:

http://lotsofcode.com/php/php-array-pagination.htm

Script is working fine.

But I have two questions.

Question 1: Is it fine to store big result in session array? if not
what will be the good alternative for that? (I am wondering to keep
first 500 result in session array and if result result is more than
500 then create one xml file.)

Question 2: Is it possible to use ajax for pagination working with
session array and having functionality of first,prev,next,last, Jump
to page number?

If any solution is there please update me.

Thanks
Ravindra.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:53:16+00:00Added an answer on May 28, 2026 at 1:53 pm

    I wouldn’t use sessions to store large amounts of data, and I wouldnt use sessions to store data returned from a table (mysql or otherwise).

    The session data is stored on the server – and held within memory – whats going to happen when you get multiple users using the same table ?

    The database (mysql or otherwise) should be sufficient enough, with the correct indexes in place, to handle queries for displaying data.

    I have a mysql table with 120 million records and can extract data quickly using date ranges – no speed issues what so ever.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

building a site using PHP and MySQL that needs to store a lot of
I am using PHP and mysql. Scenario: The registration form only required 2 fields.
I am using AJAX for the first time with PHP and mySQL. I have
I'm writing my first website using php/mysql, and jquery. For the next part, the
Been using PHP/MySQL for a little while now, and I'm wondering if there are
I am currently using PHP/MySQL and the jQuery timeago plugin. Basically, I need to
Im trying to create a iPhone Objective C login page using PHP/MySQL to authenticate.
Using PHP and MySQL, I have a forum system I'm trying to build. What
using php and mysql I have two tables, a users table and a profiles
Using PHP and MySQL, I am integrating a site with a wiki based on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.