I get this when running a script: Fatal error: Call to undefined function escape_data() in /home2/estebanp/public_html/autos/registracion.php on line 20 on line 20: $usuario = escape_data($_POST['usuario']); PLS Help me Thanks
You are trying to call a function named "escape_data" that isn't there... maybe you forgot to include a file that has the function?
If you are dealing with data to be placed in an mysql query, you might want to look at the php functions: mysql_real_escape_string() or mysql_escape_string()
escape_data() is the not inbuilt function. so perhaps you are not defined the function definition in the your script in registeration.php?
Hi, I think you don't want to allow unwanted characters in the data hence, please use mysql_real_escape_string() as: $usuario = mysql_real_escape_string($_POST['usuario']);
You can try one of the following depending on you script needs mysql_real_escape_string() addslashes()