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

While Problem
i am having a problem with a while statement here is the code
Code: [Select]<?php
sess

The IE or FF detector
Hello Friends,

Problem of today ( we seek for php help ) as following ,

we know all th

Please help with code for SMTP authenticated PHP email form
Hello, I'm creating a PHP email form, and for this particular server, I have to use SMTP Authenticat

Changes to hosting company's server has affected web contact form
I started a thread a couple of months ago about the contact forms on my client's website. Basically

News script
Hi ...

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

i am

Protecting forms
Alright, I want to protect some forms of mine from SQL Injections, because I had someone earlier spa

Help with looping
I have a comma separated list of colors taken from a database ($ICo) and a directory of images named

DBCA Templates
Hi all,

I'm working on creating a template for DBCA, but can't find any documentation on the

Firewall / visited websites logger
Hi. I have a firewall implementation and I want to log all the websites visited on the machine. S

how do i display data on a page from mysql
1 - do i use this code at the top of each of my page i wish to only alow access if there as been a s

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