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; } Link to comment https://forums.phpfreaks.com/topic/86666-mysql-clean-strings/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.