Jump to content

PHP PDO


developerdave

Recommended Posts

Hey guys,

 

I've written a fairly cool MySQL CRUD, and am thinking about a PDO based one. Is it really worth it? Is there a performance hit/gain with PDO? Security is better from what I understand but PDO is a subject I haven't touched on a great deal.

 

Any opinions are greatly appreciated :)

Link to comment
Share on other sites

Noted. I saw that in the documentation, just seems like a pretty cool feature to have instead of being stuck with MySQL. I don't personally mind MySQL but I know there are better alternatives out there.

 

PDO indeed allows you to connect to multiple databases but it does no re-write your queries to match the DBMS which means that you have to write your queries keeping in mind the differences between the DBMS systems you wish to support now and in the near future.

Link to comment
Share on other sites

Well I'm updating my framework at the moment, its to speed up and ease development for learners and designers without compromising on functionality for PHP tech heads. Default will be MySQL but I'd quite like the option to use other technologies.

 

So really its a toss up between using ORM or PDO?

 

What do people think? I'm thinking ORM but I've had a little read on PDO and it seems pretty cool and safe while staying fairly lightweight. (important to me as I've managed to keep the framework to 10-12kb so far :D)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.