Hi Brian,
On Fri, Mar 25, 2011 at 4:08 AM, Brian J. Rogers <[email protected]> wrote:
> ...
> I am looking to move from using mysql_* to using PDO, but I'm having a
> hard time making it abstract. I want something like I have now where I
> create an object, it opens the connection, and then I have a set of
> functions to run queries, sanitize input, etc.
> ...
Why do you feel that PDO by itself is not abstract enough? (not saying
that it is, just want to know where it fails to be abstract for you)
$con = new PDO('...'); // create connection
$con->query('...'); // run queries
$con->quote('...'); // sanitize (use prepared statements if you can)
What sort of API are you looking for?
Alvaro
--
http://www.alvarocarrasco.com
https://github.com/alvaroc1
_______________________________________________
UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net