Bug #12661: MYSQL_NUMROWS no longer returns a value in PHP 4.0.6

From: Date: Wed, 08 Aug 2001 20:29:07 +0000
Subject: Bug #12661: MYSQL_NUMROWS no longer returns a value in PHP 4.0.6
Groups: php.dev 
Request: Send a blank email to php-dev+get-62630@lists.php.net to get a copy of this message
From: ian@lemnet.com Operating system: Linux PHP version: 4.0.6 PHP Bug Type: MySQL related Bug description: MYSQL_NUMROWS no longer returns a value in PHP 4.0.6 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 bug report at: http://bugs.php.net/?id=12661&edit=1

« previous php.dev (#62630) next »