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

$variable $variables type question
I need to be able to designate an array element dynamically, so I thought to use a variable variable

Creating Images from images in PHP
Okay well I am trying to make a 'dynamic' calender image with PHP.

I have images like this:

How to Create a Dynamic table
col1 col2 date1 date2 date3 date4..........
a b v1 v2 v3 v4

PHP Cannot redeclare class
I have 6 files, and two of them do not seem to want to play well. I keep getting a "Cannot rede

Impact of movement type 412 E on MAP
Hi

Usage of movement type 412 E is causing huge change in MAP .

Is there any r

Functions Not Loading Into Div
I had some help doing some of this but what I'm trying to do is get my functions to retrieve its val

GET * FROM _____ Except?
I have a site that is for stock photography.

This section of the code calls images to display

Problem with a select distinct
I have a problema with a select distinct, I have the next sql:

select distinct a,b,c,d fr

Login Script Issues
I am using a script I got from http://phpsense.com/php/php-login-script.html in order to allow peopl

How to validate from 2 possible answers
Hi

I hope somebody can help me with what will probably be really simple, I'm pulling my hair

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