I’ve made a PDO Wrapper Class.
Features :
[b]CREATE TABLE
SELECT
INSERT
UPDATE
DELETE
TRUNCATE
DROP TABLE
And ofcourse, you can also run free form queries.
PDO prepared statements are used here, so…. We have an advantage
Thanks to the original source : [url]https://github.com/mikehenrty/thin-pdo-wrapper
[b]I modified it and added a lot more features.
Here is the class source : [url]http://www.scriptings.tk/paste/51e75be5656cb
Here is the sample test : [url]http://www.scriptings.tk/paste/51e758a96d3c4
Any changes that are to be made?? Please suggest.
You’re welcome to criticize.
I’ll use it later on for a huge project.
Thanks for reading. Enjoy PHP!!!