webdev
webdev

Reputation: 339

Is PDO MySQL needed for only one row?

Do I need to use PDO on queries, without user input, that just outputs one row? I'm thinking that I should use it without PDO for a little performance increase.

Upvotes: 0

Views: 46

Answers (1)

Adil
Adil

Reputation: 582

It would be a good idea to use PDO, even for such queries. I believe the mysql_ functions (part of the API) are in the process of being deprecated, if they have not been deprecated already.

Upvotes: 2

Related Questions