ahzulfi Posted January 18, 2008 Share Posted January 18, 2008 Hello, i want to know weather this function is right for my MySql query strings or not function mysql_clean($string){ $string= htmlentities($string); $string= strip_tags($string); $string= mysql_real_escape_string($string); if (get_magic_quotes_gpc()) { $id = stripslashes($string); } return $string; } Quote Link to comment https://forums.phpfreaks.com/topic/86666-mysql-clean-strings/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.