Re: [nyphp-talk] PDO or sprintf for creating sql queries.

2007-11-12 Thread Rob Marscher
On Nov 9, 2007, at 8:48 PM, John Campbell wrote: Was anyone else completely annoyed by the way most of the params were switched between mysql and mysqli where the db link was required and put as the first param in most functions? Nah... just use the object notation, and it actually makes more

Re: [nyphp-talk] PDO or sprintf for creating sql queries.

2007-11-09 Thread John Campbell
> Was anyone else completely annoyed by the way most > of the params were switched between mysql and mysqli where the db link was > required and put as the first param in most functions? Nah... just use the object notation, and it actually makes more sense. *new way* $db_conn = new mysqli("local

Re: [nyphp-talk] PDO or sprintf for creating sql queries.

2007-11-08 Thread Rob Marscher
On Nov 8, 2007, at 9:58 AM, Anthony Wlodarski wrote: I usually created my SQL queries using sprint() and mysql_real_escape_string() but this morning through an associate I was informed of this thing called PDO shipping with PHP 5.1 and higher. I did a little research on what it does and was

[nyphp-talk] PDO or sprintf for creating sql queries.

2007-11-08 Thread Anthony Wlodarski
I usually created my SQL queries using sprint() and mysql_real_escape_string() but this morning through an associate I was informed of this thing called PDO shipping with PHP 5.1 and higher. I did a little research on what it does and was thrilled about the potential uses for it. My question is t