OZONE Asylum
Forums
Server-Side Scripting - Oh my!
escape string
This page's ID:
28751
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
If I escape a string with something like[code]format_data($string){ if(function_exists("mysql_real_escape_string")) { $string = mysql_real_escape_string($string); } else { $string = addslashes($string); } return $string;}[/code]Should I be able to see the "escaping" characters in the database? For example "redroy's house" would be seen in the database as "redroy\'s house". Using like this[code]$var = format_data($_POST['var']); mysql_query("INSERT INTO table VALUES ($var)");[/code] edit: tried to make question more clear [img]http://www.sangfroidscarecrow.com/sig_scarecrow.gif[/img] [small](Edited by [url=http://www.ozoneasylum.com/user/4263]redroy[/url] on 12-20-2006 05:22)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »
Maximum Security
OZONE
DHTML/Javascript
Server-Side Scripting - Oh my!
CSS - DOM - XHTML - XML - XSL - XSLT
Stupid Basic HTML
Visual Therapy
Photoshop
Photoshop Pong, Anyone?
***WARNING*** BIG SIG APPROACHING
Photography
3D Modelling & Rendering
Multimedia/Animation
Print Graphics
Holding Pens
Philosophy and other Silliness
Outpatient Counseling
Site reviews!
Mad Scientists' Laboratory
Getting to know the Grail