Updated my class and example a bit. Was a couple of bugs in the code, and not to mention the whole "Get_Data ()" method I'd apparently forgot about.
Couldn't edit my post above, so here are the new links:
DBA class v2
DBA usage examples
Updated my class and example a bit. Was a couple of bugs in the code, and not to mention the whole "Get_Data ()" method I'd apparently forgot about.
Couldn't edit my post above, so here are the new links:
DBA class v2
DBA usage examples
@blakeyrat said:
"why does this class exist?"
Fair question. :)
It exists primarily because of 4 reasons, in order:
Now, I do believe that constitutes as "good reason(s)". At least for the first 3.
@solitario said:
I'm just wondering why you didn't give PDO a try.
All that said, I think I should perhaps give you a couple of examples of how this class can be used.
Put it on Pastebin.com so that I didn't have to muck about too much to get proper indenting and syntax highlighting here...
PS: I change the class a bit, to allow for "false" as the first parameter instead of the 4th in the verbose mode.
Seeing as there are quite a few knowledgeable people on here, and the nature of the topic of this site, I was hoping someone would be kind enough to offer me some feedback on this class. In particular, if there are anything that I could have done better and why.
In case it's not obvious it's meant as a fully interchangeable class for interfacing against a multitude of DBMS, without having to change anything other than the name of the file included. It doesn't, obviously, support all of the features. Nor will it ever do, but it should support the most used ones. If I've missed some, please let me know as well as why you think it's a necessary inclusion.
Without further ado: The class in question
All constructive criticism is appreciated, flames will go (mostly) ignored. (Unless I want a nice bbq. :P)
I promise to even leave my favourite erinaceinae at home, lest someone wants to have a meet and greet?
PS: If anyone wants to use it for their own projects, the license is stated in the PHPdoc header for the class. Should anyone, for any reason, want to use it in a commercial project please let me know. I'm sure we can come to an agreement.
Edit: Gah! I now see why you guys are always stating that this forum software is TRWTF. It really is! >:(