Ver original$VALOR = strip_tags(trim($_POST['VALOR'])); mysql_query("SELECT * FROM tabla WHERE valor = % ", mysql_real_escape_string(stripslashes($VALOR)));