+ 4

Best Connection Type for PHP?

I'm starting to get used to PHP but I'm still wondering, which connection type is better?: MySQLi, MySQL or PDO Can you let me know of the advantages and disadvantages and their security, thanks!

24th Mar 2017, 9:27 PM
Thomas John
Thomas John - avatar
3 Réponses
+ 2
MySql is now deprecated so you should use mysqli. That's basically a improved version of mysql
25th Mar 2017, 5:18 PM
Abhishek Chatterjee
Abhishek Chatterjee - avatar
+ 2
Thanks! I've started using it and it's worked fine 😃
25th Mar 2017, 5:19 PM
Thomas John
Thomas John - avatar
+ 1
I tried using mysql on my wampserver and it isn't wotking but mysqli is working perfectly... So i think mysql is not supported by all servers... Use mysqli
3rd Jul 2017, 10:04 PM
Mbrain
Mbrain - avatar