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

News script
Hi ...

I am not sure if this is the rite place to post this but if its not sorry

i am

Setting condidtions for an input box
Hi all,

I would like to set a condition in a txt box that says the number a user enters has t

gmmktime or mktime
I live in the UK, i am within the GMT (with daylight saving time ie 1 hour difrence between summer a

Placing and array within an array then sorting it!
I have a page that runs two large mysql queries and saves the results into arrays, in php I then per

Price in PR
Dear Experts,
Why we have to enter the price in the PR, and why there is no free goods indicato

isset undefined variable
Hi all,

Hope someone can point out the obvious. I've a log in script, if you dont enter a use

how to export excel file in same server
My first post - php newbie, so appreciate your support.

I'm currently using headers to save w

problem when runing a funciton
I am trying to connect to database using a funciton in a functions.php

<?php
funct

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

Preserving user-entered linebreaks
Hi, I'm building a web 2.0 thingy from scratch and I wanna display text which users input. It's all

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