Showing posts with label sql. Show all posts
Showing posts with label sql. Show all posts

Tuesday, March 26, 2013

xss and sql injection prevention

//filtering input for xss and sql injection
$input = strip_tags( $input );
$input = mysql_real_escape_string( $input );
$input = trim( $input );