I’m reading up on php db classes and everything i’m reading recommends “PDO”. Cool. So what then is the purpose of “mysqli_stmt”? Is is deprecated?
Please advise.
sleeper.
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.
There is more than one way to do things. PDO is a database layer that allows you to use many different database types via various drivers.
mysqli_*is only for MySQL.Both will get the job done when using a MySQL database. I recommend PDO, but that is just my preference, as I like the flexability of possibly changing databases more easily in the future.