简体   繁体   中英

PHP & MySQL: PEAR:MDB2 or mysqli

I noticed that the MDB2 library isn't updated anymore.

Should I remove it and start using the native mysqli extension?

Moreover, will using the native extension instead of MDB2 will impact performances of my queries?

Use pdo:

http://php.net/manual/en/book.pdo.php

It's pretty much becoming the standard. Use parameter binding judiciously to avoid sql injection.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM