Difference between mysql & mysqli [duplicate]

百般思念 提交于 2019-12-28 06:17:11

问题


Possible Duplicate:
mysql vs mysqli in php

What is the difference between mysql_* functions and mysqli_* functions? Is there any technical reasons behind we shouldn't use mysql_* functions?


回答1:


The "i" stands for "improved". The list of improvements can be found in here.

MySQLi is the OOP version of MySQL extension. In the end, MySQLi and MySQL accomplish the same thing: they are extension for interacting with MySQL from PHP. A lot of people still use the original MySQL extension instead of the new MySQLi extension because MySQLi requires MySQL 4.1.13+ and PHP 5.0.7+ .

MySQLi supports some things that the old MySQL extension doesn't. Things like prepared statements, multiple statements, and transactions on top of my head.




回答2:


http://php.net/manual/en/mysqli.overview.php should explain all the differences



来源:https://stackoverflow.com/questions/14151458/difference-between-mysql-mysqli

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!