i'm using this in every $_get or $_post before acces or insert to my Database..
i'm sure it's not enough.. but how safe is it? can i combine it with some expresion to make it safer?
thanks a lot!
so how about this? mysql_real_escape_string(htmlspecialchars( $value ));
htmlspecialcharshas nothing to do with making it safe for database entry. Use the database's escape function or parameterized queries (PDO) for that.