This is a discussion on "mysql_escape_string() not working as planned" within the PHP Forum section. This forum, and the thread "mysql_escape_string() not working as planned are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
mysql_escape_string() not working as planned
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
mysql_escape_string() not working as planned
I have a simple query that inserts a string into a table. I'm using mysql_escape_string() to escape all quotation marks and apostrophes. But the inserted values keep the double backslashes that mysql_escape_string inserted. How do I escape the values but prevent the backslashes from being inserted?
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
|
|
|
|
||||
|
Re: mysql_escape_string() not working as planned
Nevermind. Turns out the values were previously escaped. Still don't know why........
__________________
echo "Take it easy, ".$CloudedVision; .links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; } <quote>"I think it's wrong that only one company makes the game Monopoly" - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CSS not working in IE? | Jgag | Web Page Design | 2 | Jun 5th, 2008 11:14 |
| Why is this not working! | Jack Franklin | PHP Forum | 7 | Mar 25th, 2008 10:34 |
| PNG - IE not working | Phixon | Web Page Design | 3 | Nov 30th, 2007 13:47 |
| More new features planned! | Rob | Announcements and News | 0 | Dec 15th, 2006 22:23 |