RE: [PHP] Re: mysqli sql question

2011-08-31 Thread Jen Rasmussen
know. I've been up to my ears in PDO the last several weeks. Jen -Original Message- From: Richard Riley [mailto:rile...@googlemail.com] Sent: Wednesday, August 31, 2011 9:18 AM To: php-general@lists.php.net Subject: [PHP] Re: mysqli sql question "Jen Rasmussen" writes

Re: Re: [PHP] Re: mysqli sql question

2011-08-31 Thread james
> Original Message >From: Louis Huppenbauer >To: php-general@lists.php.net >Sent: Wed, Aug 31, 2011, 10:24 AM >Subject: Re: [PHP] Re: mysqli sql question > >Hi there Richard > >It's part of the prepared statements >http://php.net/manual/de/pdo.prepa

Re: [PHP] Re: mysqli sql question

2011-08-31 Thread Louis Huppenbauer
Hi there Richard It's part of the prepared statements http://php.net/manual/de/pdo.prepared-statements.php ;) 2011/8/31 Richard Riley > "Jen Rasmussen" writes: > > > Peet, > > > > Could you do something like this instead? This is using named > placeholders > > and a separate line for your stat

[PHP] Re: mysqli sql question

2011-08-31 Thread Richard Riley
"Jen Rasmussen" writes: > Peet, > > Could you do something like this instead? This is using named placeholders > and a separate line for your statement > but I was able to get it to echo the statement in this manner. > > $sql = "UPDATE table SET field1=:field1, field2=:field2 WHERE id=:id"; >