关于mysql_query之类的思考 [英] A pondering thought about mysql_query and such
问题描述
好,因此在一年左右的时间里,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屋!