Return to Snippet

Revision: 64124
at July 6, 2013 08:30 by michielcox


Initial Code
function clean_for_db($data) {
	$entry = trim($data);
	$entry = strip_tags($entry);
	$entry = mysql_real_escape_string($entry);
	return $entry;	
}

Initial URL

                                

Initial Description

                                

Initial Title
Function: Clean string for DB entry

Initial Tags

                                

Initial Language
PHP