Re: MySQL - PHP - limits...

From: Date: Wed, 09 Mar 2005 10:40:54 +0000
Subject: Re: MySQL - PHP - limits...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-210293@lists.php.net to get a copy of this message
Alex Ortiz wrote:
Hello. Is there a records limit when browsing (a sql SELECT) in PHP from a MySQL table?
no limit on php side, perhaps 2^31 if you do calculations.
I´m browsing a table with PHP from MySQL, and something is wrong, if the table has more than 5047 records, the browse appears blank. Additionaly, if make the browse in a child window (target="_blank"), the limit becomes lower: 437 records. My SQL query is: SELECT * FROM my_table ORDER BY my_order_index The way I "solve" the problem is adding LIMIT 5047 to query (or 437), just for testing. This works fine.
Echo out your sql query and see if you get what you should.

« previous php.general (#210293) next »