Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/04/2012, 10:44
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 17 años, 11 meses
Puntos: 2135
Respuesta: Otro método para evitar el SQL injection

Es mucho mejor en lugar de hacer trucos de ese tipo, usar prepared statements, así te evitas el problema de SQL Inyection. Lee la referencia de PDO: Prepared Statements.

Saludos.