Ver Mensaje Individual
  #5 (permalink)  
Antiguo 28/03/2008, 17:36
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 20 años, 5 meses
Puntos: 2135
Re: Error al insertar registro

¿Hay alguna razón por la que uses strip y add? Recuerda el funcionamiento de htmlspecialchars.

Prueba mejor hacer una función así:
Código PHP:
function limpiar( $texto ) {
       if( 
get_magic_quotes_gpc() ) {
                    
$texto = stripslashes( $texto );
       }

       
$texto = htmlspecialchars( $texto );

       return 
addslashes( $texto );
} 
Saludos.