Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Re: Quoting "
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 6 Topic 15424 of 17602
Post > Topic >>

Re: Quoting "

by aanderson@[EMAIL PROTECTED] (Andy Anderson) Apr 30, 2008 at 12:51 PM

> On Wed, Apr 30, 2008 at 9:10 AM, Andy Anderson  
> <aanderson@[EMAIL PROTECTED]
> wrote:
>> In a test I just did, the sequence \" (backslash double-quote) is
>> interpreted as just a " inside of the E'...' string constant  
>> expression.
>> This is great, since PHP's addslashes() sticks them in along with  
>> the other
>> stuff I really need to quote like ' and \.

On Apr 30, 2008, at 11:52 AM, Scott Marlowe wrote:
> Why are you using php's addslashes() function?  Is there something
> missing from pg_escape_string()???  Or are you doing something else
> I'm not thinking of?

Yep, relying on what I already know to move forward on my project,  
rather than browsing the manual for things I didn't know I needed :-).

Thanks for the tip.

-- Andy


-- 
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 6 Posts in Topic:
Quoting "
aanderson@[EMAIL PROTECTE  2008-04-30 09:10:38 
Re: Quoting "
tgl@[EMAIL PROTECTED] (T  2008-04-30 10:28:28 
Re: Quoting "
aanderson@[EMAIL PROTECTE  2008-04-30 10:33:19 
Re: Quoting "
craig@[EMAIL PROTECTED]   2008-04-30 22:28:17 
Re: Quoting "
scott.marlowe@[EMAIL PROT  2008-04-30 09:52:39 
Re: Quoting "
aanderson@[EMAIL PROTECTE  2008-04-30 12:51:45 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 20:00:17 CST 2008.