关于mysql_query之类的思考 [英] A pondering thought about mysql_query and such

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

问题描述

好,因此在一年左右的时间里,mysql_query将在较新版本的PHP中消失.话虽这么说,但经常在网站上使用的mysql_query将停止对那些进行更新的人起作用.

OK, so in a year or so mysql_query will be gone in the newer versions of PHP. That being said the ever-so-used mysql_query used on sites will stop working on those who update.

这还会影响mysql_num_rows和其他功能吗?我的意思是,有什么替代mysql_query的东西?我知道有mysqli,但是和mysql有什么不同?

Will this also affect things like mysql_num_rows and other functions? I mean, what alternative to mysql_query is there? I know there is mysqli but how is it different to that of mysql?

谢谢.

推荐答案

是.整个(原始)mysql扩展将消失,而不仅仅是mysql_query函数.涉及的功能列表可以在以下位置查看:

Yes. The whole (original) mysql extension is going away, not just the mysql_query function. The list of functions involved can be seen at:

http://php.net/manual/en/ref.mysql.php

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

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