PHP: mysql_real_escape_string - Manual
php.net/int
php.net/addslashes
php.net/htmlspecialchars