mysql_num_rows与mysql_numrows [英] mysql_num_rows vs. mysql_numrows

查看:80
本文介绍了mysql_num_rows与mysql_numrows的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果已经回答了这个问题,请重定向我.

Please redirect me if this question has already been answered.

我一直在管理旧版系统,我注意到它们使用的是调用mysql_numrows而不是mysql_num_rows.我花了很多时间来搜索这些调用的文档,但没有发现任何问题.该系统运行良好,并且我没有找到为此定制功能的证据.

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.

无论如何,这是否是旧版本PHP中不推荐使用的函数?当我添加到系统中时,我使用mysql_num_rows,这很好用.

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.

是的,我知道mysql_ *已过时,应该更新系统,但这超出了我的服务范围.我主要只是好奇为什么这行得通?谢谢.

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.

推荐答案

mysql_numrows()是用于向后兼容的mysql_num_rows()的别名.

mysql_numrows() is an alias for mysql_num_rows() used for backward compatibility.

查看以下文档- http://us1.php.net/mysql_num_rows

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

希望这有助于澄清您的问题.

Hope this helps clarify your question.

我建议尽可能使用mysql_num_rows(),以防在将来的版本中忽略向后兼容性.

I'd suggest using mysql_num_rows() where possible, in case this backward compatibility will be ignored in future versions.

干杯!

这篇关于mysql_num_rows与mysql_numrows的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆