
 mike mcdowell - 2018-09-10 19:22:27
For backward compatibility, mysql_numrows(), a deprecated alias, may be used for mysql_num_rows until php 7.  We found many instances of mysql_numrows in the code we are maintaining and found that the easiest fix was to add the code below to the mysql2i.func.php file after the definition of mysql_num_rows:
 function mysql_num_rows($result){ 
     
     return mysql2i::mysql_num_rows($result); 
     
 } 
 
 # added function mysql_numrows which is a backward compatible synonym of mysql_num_rows
 function mysql_numrows($result){ 
     
     return mysql2i::mysql_num_rows($result); 
     
 }
This worked in our testing and saved us making code changes.
Mike