Bug #12661 Updated: MYSQL_NUMROWS no longer returns a value in PHP 4.0.6
| From: | sniper@php.net | Date: | Thu, 09 Aug 2001 00:11:08 +0000 |
| Subject: | Bug #12661 Updated: MYSQL_NUMROWS no longer returns a value in PHP 4.0.6 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-62666@lists.php.net to get a copy of this message | ||
ID: 12661
Updated by: sniper
Reported By: ian@lemnet.com
Old Status: Open
Status: Closed
Bug Type: MySQL related
Operating System: Linux
PHP Version: 4.0.6
New Comment:
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
Previous Comments:
------------------------------------------------------------------------
[2001-08-08 16:29:07] ian@lemnet.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.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=12661&edit=1