Ver Mensaje Individual
  #5 (permalink)  
Antiguo 19/08/2013, 14:45
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Escapar array con mysqli

Puedes usar algo así:
Código PHP:
Ver original
  1. $array = array_map(function($entry) {
  2.        global $db;
  3.        return $db->real_escape_string($entry);
  4. }, $_POST['incluye']);