sign in | join about | help | sitemap
Connecting Tech Pros Worldwide
frizzle's Avatar

Still experiencing mysql_real_escape_string difficulties.


Question posted by: frizzle (Guest) on November 9th, 2005 06:25 PM
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.

1 Answer Posted
Andy Hassall's Avatar
Guest - n/a Posts
#2: Re: Still experiencing mysql_real_escape_string difficulties.

On 9 Nov 2005 10:17:25 -0800, "frizzle" <phpfrizzle@gmail.com> wrote:
[color=blue]
>I had another topic about this problem, and i thought i figured it
>out, but i didn't :([/color]

Why repost it then? You only posted an identical message to this one to that
thread yesterday.
--
Andy Hassall :: Join Bytes! :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
 
Not the answer you were looking for? Post your question . . .
196,787 members ready to help you find a solution.
Join Bytes.com

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 196,787 network members.
Post your question now . . .
It's fast and it's free

Popular Articles

Top Community Contributors