9 ms·
Thanks so much for your time! I was wondering whether you would suggest using PDO or mysqli for connecting to mysql via PHP?
by drjake 13y ago
Thanks so much for your time! I was wondering whether you would suggest using PDO or mysqli for connecting to mysql via PHP?
- LDN 13y agoFrom my personal experience I would suggest working with PDO. It is easy to implement, supports multiple drivers if needed and has named parameters in your prepared statements. The difference in terms of performance should be insignificant - although I think in some cases mysqli tends to execute faster.
- cafard 13y agoIt also has the merit for Perl developers of being more or less like Perl's DBI.