|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-08-08 20:11 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 13:00:01 2025 UTC |
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.