php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5678 mysql_num_rows fails sometimes
Submitted: 2000-07-19 17:12 UTC Modified: 2000-08-18 21:31 UTC
From: coolio at mdq dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.1pl2 OS: Solaris 7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: coolio at mdq dot com
New email:
PHP Version: OS:

 

 [2000-07-19 17:12 UTC] coolio at mdq dot com
I have PHP 4.0.1pl2 compiled as a CGI on my Solaris.
I use MySQL 3.22.32

The script fails only sometimes.
I run the script and works fine... 1 minute later, I run the script again and it fails... maybe later fails again.. or maybe not...
It?s not a script problem... it seems like a PHP or MySQL problem...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-20 21:04 UTC] mrobinso at cvs dot php dot net
Please provide the ./configure line used to compile
php, and the shortest possible snippet of code that
reproduces the problem.
 [2000-08-18 21:31 UTC] sniper@php.net
No feedback and not enough info. (and works for me just fine with latest CVS)

--Jani
 [2002-01-18 16:28 UTC] michaelkingswood at hotmail dot com
I have the same problem, mysql_num_rows just doesnt work!
it is saying that
(line 8) $check1= mysql_query("select id from users where user='$user'") or die("Bad query1: ".mysql_error());
(line 9) $check1= mysql_num_rows($check1) or die("Bad query2: ".mysql_error());

when run it is coming up with:
Bad query2: 

and thats it. COuld someone please get back to me on what the problem is and how i could fix it if i can, thanx
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 08:01:28 2025 UTC