?

Search Help Board

PHP FAQ
PHP Articles
PHP Help
Bulletin Board

PHP Manual (NEW!)
First Time PHP'ers
Help with programming
Sql assignment help
PHP Homework Help


C# Help

?
?Re: ODBC to SQL via PHP
Author:??(---.scpe.powergate.ca)
Date:???05-07-04 09:08

$string = str_replace("'","''",$string);

replaces all the single quotes with the two single quotes...you could also try addslashes...

Note that on the way out (when passing this data back to the screen you'll need to do the replace in the other direction, to remove the second single quote

?Topics Author? Date
?ODBC to SQL via PHP??new
Glenn 05-07-04 08:00?
?Re: ODBC to SQL via PHP??new
bastien 05-07-04 09:08?
?Re: ODBC to SQL via PHP??new
Glenn 05-07-04 09:39?
Go to Top??|??Go to Topic??|??Flat View??|??Search?
??|??
New Topic
?Reply To This Message
?Your Name:
?Your Email:
?Subject:
Email replies to this thread, to the address above.
??wrote: > > $string = str_replace("'","''",$string); > > replaces all the single quotes with the two single > quotes...you could also try addslashes... > > Note that on the way out (when passing this data back to the > screen you'll need to do the replace in the other direction, > to remove the second single quote ">??

Provided By
Phorum