Using mysql_real_escape_string for displayed content


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

On my website users can input data into a textarea and it will store it in the mysql database. But, I am unsure on how to prevent against mysql injections without using mysql_real_escape_string since I need to be able to display " " and / if the user enters it.

Did you know?Explore Trending and Topic pages for more stories like this.
Basically similar to how a forum post displays text data is what I need to do
No comments posted yet

Your Answer:

Login to answer
221 Like 42 Dislike
Previous forums Next forums
Other forums

Alternate messaging
I have 4 strings in MySQL db1

$string1 : Hello
$string2 : Hi
$string3 : Great
$strin

Time script, set to my time zone?
I am using this line to get the date and time

Code: $time = date(F." ".d.", &q

Required to login help
I'm trying to set up my site so users have to be logged into the forum to access the site.I've been

Insert numbers from Barcode scanner into online php page
I have a real big problem, Here is what I'm trying to do. I have a Intermec CN3 handheld computer th

problem with refreshing
in my site, i have an index page, it has a main div. this main div's content is changing according t

If statement help please.
Hello on my site I have 2 content boxes. 1 is for the main content (which is the biggest one) and th

Preg_match unknown modifyer
Hello,

Im trying to write a little script for my forums i need to get the reply from my forum

How to copy a part of a vector in a raw memory
Hi,

How can I copy a part of a vector into a memory:

1
2
3
4
5

GMail like Chat in ASP.NET
Hi,Can anyone suggest me, how to incorporate GMail like chat in my existing ASP.Net application.I wa

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

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