Hello all,
well sometimes user insert information like "name" in the database because of which it causes problem in the site. So anyone tell me how to resolve this problem. I have already used addslashes.
reibi
0
Newbie Poster
Recommended Answers
Jump to Postaddslashes simply puts a slash before it.
what you need to do is when echoing to the browser convert those symbols to html<?PHP $var = 'this\'s some "users content"' $var = str_replace('"','"', $var); $var = str_replace("'", ''', $var); ?>
I created a very short tutorial (pretty …
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.