Connecting Tech Pros Worldwide Help | Site Map

Still experiencing mysql_real_escape_string difficulties.

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 9th, 2005, 05:25 PM
frizzle
Guest
 
Posts: n/a
Default Still experiencing mysql_real_escape_string difficulties.

Hi there,

I had another topic about this problem, and i thought i figured it
out, but i didn't :(


I tested inserting the following text:
'"\ (single quote, double quote, backslash)

Via PHP:
$new_var = mysql_real_escape_string($_POST['var']);
$put_info = mysql_query(" INSERT INTO `test` ( `id` , `text` )
VALUES ('', '".$new_var."');");

And via phpMyAdmin.
If i view the first raw data , i see the following:
\'\"\\

If i view the text inserted via phpMyAdmin, i see
'"\ (the way it should be)

What am i still missing? :s

Greetings Frizzle.

(original topic at
http://groups.google.com/group/comp....532f570699d961
)


 

Bookmarks

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.