Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mysql_num_rows vs. mysql_numrows

Tags:

php

mysql

Please redirect me if this question has already been answered.

I have been managing a legacy system, and I have noticed they use the call mysql_numrows instead of mysql_num_rows. I have spent a decent amount of time searching for documentation on these calls, but have turned up nothing. The system works fine, and I have found no evidence of custom functions for this.

Does anyway know whether this is a deprecated function from an older version of PHP? When I am adding to the system I use mysql_num_rows, which as works fine.

Yes I know that mysql_* is outdated and the system should be updated, but that is beyond the scope of my services. I am mainly just curious why this works? Thanks.

like image 651
aray12 Avatar asked Sep 13 '25 22:09

aray12


1 Answers

mysql_numrows is a deprecated alias for mysql_num_rows.

For backward compatibility, the following deprecated alias may be used: mysql_numrows()

Found it here.

like image 156
Florian Bussmann Avatar answered Sep 15 '25 11:09

Florian Bussmann