I’m a newbie and I would know which is the best way to interact with mysql db through php?what kind of available interface is better to using? mysqli o pdo?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have a gander at What is the difference between MySQL, MySQLi and PDO?
Accepted answer copied in below, for people who don’t have a mouse to click links with 🙂
Author: Matthew FlaschenThere are (more than) three popular ways to use MySQL from PHP.
I would recommend using PDO with prepared statements. It is a well-designed API and will let you more easily move to another database (including any that supports ODBC) if necessary.