Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/05/2007, 17:48
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
Re: Cachar variables $_POST[var + numero]

Precisamente como lo estas haciendo:
Código PHP:
$query "INSERT INTO `existencia` (nombre_p, existencia) VALUES( '%s', '%s' )";
for(
$i=0$i<$cont$i++) {
      
$sql sprintf$queryaddslashes$nombre ), addslashes$_POST['existencia' $i ] ) );