mysql_real_escape_string making variable equal nothing


Posted on 16th Feb 2014 07:03 pm by admin

i post a form and i post the variable:
Code: $var = $_POST[variable];then i echo $var its what i submitted the variable to be.
then i add the mysql_real_escape_string() function to it
spell it correctly too
Did you know?Explore Trending and Topic pages for more stories like this.
Code: $var = mysql_real_escape_string($_POST[variable]);then i echo the variable it equals nothing?
why?
is it because i havent added a mysql query on yet or what?
No comments posted yet

Your Answer:

Login to answer
316 Like 44 Dislike
Previous forums Next forums
Other forums

How can I uploading Transactional Data from Legacy to New SAP system
Hell Gurus,

I am overwhelmed with questions on how to migrate huge volume of Sales Orders

Simple Question
I know this is a simple question, that if I knew what it was technically called i could probably loo

sql error
I have been looking at this code for 20mins and can't work out what I am doing wrong. There is somet

What's best way to get a user's Word doc converted to simple html and images?
Hi all,

I was just wondering if anybody has any experience of this.
Basically, I'm buildin

Solution to the FindControl problem
I have seen may posts about having problems with the FindControl method. Most seem to come about bec

database design
Hi,

I got a page which allow candidate to type in their previous working experience,
I let

in php, link returns to the line
When I add a link in a php page, the link word returns to the line (as a
would do)

Examp

Find occurences of unicode characters in string
I need to prohibit filenames with everything but English characters and numbers but regexp and strin

first few characters only
hi, does anyone know how to use PHP to take the first few words of a text and limit them? i have see

Multiple while loops
I have several DB queries that I know should be returning results and aren't. I have a feeling it ha

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash