Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
mysql_real_escape_string vs addslashes
Old 05-06-2009, 01:40 PM mysql_real_escape_string vs addslashes
Truly's Avatar
Ultra Talker

Posts: 322
Trades: 0
Hey,

If I am using mysql_real_escape_string and the server automatically adds slashes does that mean I am double escaping some characters?

Thanks
__________________
DVD Movie Release Database:
Please login or register to view this content. Registration is FREE
Truly is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-07-2009, 10:58 AM Re: mysql_real_escape_string vs addslashes
Experienced Talker

Posts: 44
Trades: 0
i doubt so, but what about taking a look in phpmyadmin and see if it's \' or \\'
Onkel E is offline
Reply With Quote
View Public Profile
 
Old 05-07-2009, 12:18 PM Re: mysql_real_escape_string vs addslashes
anderswc's Avatar
Super Talker

Posts: 132
Name: Will Anderson
Location: Terre Haute, IN
Trades: 0
Yes, you most likely are if the server automatically adds slashes. You can check if slashes are automatically being added by calling the following PHP function

get_magic_quotes_gpc()
__________________
Will Anderson

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
anderswc is offline
Reply With Quote
View Public Profile Visit anderswc's homepage!
 
Reply     « Reply to mysql_real_escape_string vs addslashes
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.11426 seconds with 12 queries