how to clean request string in php for prevent sql injection

function cleanit($text)
{
return htmlentities(strip_tags(stripslashes($text)), ENT_COMPAT, "UTF-8");
}

Comments

Popular posts from this blog

how to check ban-word user in put using php

Create a simple Web Service Using PHP, MySQL,JSON, and , XML

Difference between session_register and $_SESSION[] in phpsession_register and $_SESSION[] in php