mysql VS mysqli,该用哪一个?该怎么处理

WBOY
Release: 2016-06-13 12:53:31
Original
732 people have browsed it

mysql VS mysqli,该用哪一个?
初学PHP,看到数据库这儿了
教科书中讲mysqli是一个新的扩展,在mysql扩展上进行了改进:
自身绑定/预备/执行功能
指针支持
多语句支持
……
问同事,他们基本都在用mysql而非mysqli,也不知道为什么?

达人讲解一下?

谢谢!


------解决方案--------------------
pdo
  !
------解决方案--------------------
好象是MYSQL吧
------解决方案--------------------
最新版的PHP已经要弃用mysql了
------解决方案--------------------
mysql 函数组是基于 mysql4 开发的面向过程的一组函数
mysqli 函数组是基于 mysql5 开发的面向对象的一组对象
为迎合老程序的需要,mysqli 也提供了面向过程的函数

建议使用 PDO form mysql
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!