汉英对照:
Chinese-English Translation:
PHP-MySQL是PHP操作MySQL资料库最原始的Extension,PHP-MySQLi的i代表Improvement,提更了相对进阶的功能,就Extension而言,本身也增加了安全性。
PHP MySQL is the most original extension for PHP to operate MySQL database. The I of PHP MySQL Li stands for improvement, which improves the relatively advanced functions. As far as the extension is concerned, it also increases the security.
PHP–MySQL 是 PHP 操作 MySQL 资料库最原始的 Extension ,PHP-MySQLi 的 i 代表 Improvement ,提更了相对进阶的功能,就 Extension 而言,本身也增加了安全性。
PHP – MySQL is the most original extension for PHP to operate MySQL database. The I of PHP MySQL Li stands for improvement, which improves the relatively advanced functions. As far as the extension is concerned, it also increases the security.
php MySQLi 的意思是:
PHP mysqli means:
1、mysqli 是 mysql 系统函数的增强版,更稳定更高效更安全;
1. Mysqli is an enhanced version of MySQL system functions, which is more stable, efficient and secure;
2、mysqli 与 mysql 都是 php 方面的函数集;
2. Both mysqli and MySQL are PHP function sets;
3、mysqli 是永远连接函数,mysqli 多次运行使用同一连接进程,减少服务器的开销。
3. Mysqli is always connected function. Mysqli runs multiple times using the same connection process to reduce the server overhead.
mysql 与 mysqli 区别:
Difference between MySQL and MySQL:
(1)、mysql 是非持继连接函数,mysql 每次链接都会打开一个连接的进程。
(1) MySQL is a non continuous connection function. Each link of MySQL will open a connected process.
(2)、 mysqli 是永远连接函数,mysqli 多次运行 mysqli 将使用同一连接进程,从而减少了服务器的开销。mysqli 封装了诸如事务等一些高级操作,同时封装了 DB 操作过程中的很多可用的方法。
(2) Mysqli is a permanent connection function. If mysqli runs mysqli many times, it will use the same connection process, thus reducing the server overhead. Mysqli encapsulates some advanced operations such as transactions, and encapsulates many available methods in the process of DB operation.