Explore
Top Rated Discussions
Most Recent Discussions
Most Recent Activity
Hot Discussions
New User Discussions
Discussions w/ No Response
Help
FAQ
Earnings Program
Community Guidelines
Contact
Sign Up!
Log In
Search
Tagged Discussions
Tagged Responses
Tagged Comments
Tagged All Activity
Users
Full Text Discussions
Full Text Responses
Full Text Comments
Full Text All Activity
X
php
avoiding SQL injection in PHP
By
screamkevin
@screamkevin
(82)
Philippines
Tweet
March 29, 2010 7:57am CST
can anybody give some information how to avoid SQL injection in PHP MySQL?
1 response
Langstra
@Langstra
(16)
• Netherlands
31 Mar 10
Stripe the tags when a form gets submitted. Write a function to do this. function stripe_tags($text) { $tekst = strip_tags($text); $tekst = htmlspecialchars($text); return $text; } And use the fucntion. $name=stripe_tags($_POST["name"]);