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 7742525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:17:52+00:00 2026-06-01T09:17:52+00:00

I am using simple PHP query to fetch rows from the database, there are

  • 0

I am using simple PHP query to fetch rows from the database, there are above 7000 rows in the table and whenever I fetch all rows, the PHP doesn’t work and script dies, but when I limit the results to 6400 everything works fine.
Is there any limitation in MySQL or PHP that I should be aware of? If any, where I need to configure these settings.
Any help is highly appreciated.
Please note that my PHP settings allow the script execution time of 1800 seconds and memory usage is set to 512MB.

  • 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-06-01T09:17:53+00:00Added an answer on June 1, 2026 at 9:17 am

    Why do you need that much rows? I’m pretty sure php dies because it runs out of memory.

    Run your query in a console to see if you get there more than 7000 rows without issues. If it returns them all there you can be sure it’s php and not your database and I’m sure it is php.

    For whatever you do, it would be better to loop over the data, also known as “pagination” and read it in chunks of for example 100 rows and process it, 0-100, 100-200, 200-300…

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

Sidebar

Related Questions

I'm trying to create a simple database table using the PHP MySQL query Create
im using a simple test script from http://www.tuxradar.com/practicalphp/8/11/0 like this <?php $fp = fopen(foo.txt,
I'm using a very simple Stylesheet Switch by php. It was fine all along
My table is being populated using ajax from a mysql database. I have a
i created a simple search engine that displays mysql database results using the php
I am writing a simple php registration page using MySQL as the database. I
Got a relatively simple MySQL query that I'm pulling using php with the following
i ave been having trouble with a simple select sql query. using php PDO.
I am learning scraping using the PHP Simple HTML DOM Parser and Xpath. Accroding
I have a simple php script on a server that's using fsockopen to connect

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.