Ver Mensaje Individual
  #7 (permalink)  
Antiguo 04/02/2009, 19:15
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: insertar un dato vacio o null si no se selecciona ningun checkbox

Mmm porque no haces algo así:
Código php:
Ver original
  1. $elec = ( isset( $_POST['elec'] ) && is_array( $_POST['elec'] ) ) ? implode( ', ', $_POST['elec'] ) : '';

Saludos