Ver Mensaje Individual
  #2 (permalink)  
Antiguo 15/04/2014, 16:46
Avatar de Cuervoo
Cuervoo
 
Fecha de Ingreso: octubre-2013
Mensajes: 165
Antigüedad: 10 años, 7 meses
Puntos: 43
Respuesta: Subir Imagenes PHP

usá mysqli, http://www.php.net/manual/es/book.mysqli.php, y fijate el método prepare para meter variables. Te vas a ahorrar andar pensando tanto en la seguridad.

Código PHP:
Ver original
  1. if (PHP_VERSION < 6) {
  2.     $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  3.   }

y en esa línea, todavía no hay versión 6, recién salió la 5.6 asique siempre va a entrar al if