php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11785 mysql_unbuffered_query and mysql_query failure.
Submitted: 2001-06-28 13:40 UTC Modified: 2001-06-30 04:23 UTC
From: trozdzyn at anronet dot pl Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.6 OS: Linux redhat 7.0
Private report: No CVE-ID: None
 [2001-06-28 13:40 UTC] trozdzyn at anronet dot pl
I have mysql table with over 60000 records inside.

code:
$sql = "SELECT * FROM database.table ORDER BY field";
$result = mysql_unbuffered_query($sql) or die("Error!");
does not work at all but displays "Error!"

code:
$sql = "SELECT * FROM database.table ORDER BY field limit  1,1000";
$result = mysql_unbuffered_query($sql) or die("Error!");
works fine.

code:
$sql = "SELECT * FROM database.table";
$result = mysql_unbuffered_query($sql) or die("Error!");
works fine.


Moreover , there is exactly the same problem with mysql_query() function...


My system is:
PHP: 4.0.6
MySQL: 3.23.22
Linux Kernel: 2.2.17-14


Help!!!

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-30 04:23 UTC] derick@php.net
Try putting this line after the mysql_unbuffered_query line.
You'll probably see the error that MySQL returns. This is most likely a bug in PHP.

Derick
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 04 15:01:29 2024 UTC