php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12661 MYSQL_NUMROWS no longer returns a value in PHP 4.0.6
Submitted: 2001-08-08 16:29 UTC Modified: 2001-08-08 20:11 UTC
From: ian at lemnet dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.6 OS: Linux
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: ian at lemnet dot com
New email:
PHP Version: OS:

 

 [2001-08-08 16:29 UTC] ian at lemnet dot com
I have a short script that displays the number of rows from a mysql_query using mysql_numrows. It lives in my windows taskbar and refreshes every hour while I'm on the computer.

Today my hosting company upgraded to PHP 4.0.6 from 4.0.5 and the mysql_numrows is no longer returning a value. Using mysql_num_rows solves the problem.

A basic version of my script is:
<?php
$result = MYSQL_QUERY("...");
$rows = MYSQL_NUMROWS($result);
echo "$result</b>";
?>

I do not control the webserver, so the hosting company may have used different command line options when they upgraded.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-08-08 20:11 UTC] sniper@php.net
Works for me just fine. And mysql_numrows() is deprecated
anyway and only exists as an alias for mysql_num_rows().

Closed this as if (which I doubt) it didn't work somewhere,
we're not gonna do anything about it. Use mysql_num_rows().

--Jani


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 05 01:01:35 2025 UTC