Jump to content
Larry Ullman's Book Forums

Recommended Posts

Larry,

 

For connecting to a database, do you usually use mysqli (object oriented or procedural) or the PDO extension? Any reasons why you use one over the other? One book I'm reading recommends using PDO for new web development.

Link to comment
Share on other sites

Thanks for the question. Normally I use MySQLI procedurally. I know lots of people love PDO but I have yet to see the benefit of using it for most projects. In twelve years, I've never once switched the underlying database application (a switch like that would be easier with PDO). To me, using PDO just seems like extra overhead. I'm not against PDO, I'm just saying I haven't felt the need to rely upon it.

Link to comment
Share on other sites

 Share

×
×
  • Create New...