Ver Mensaje Individual
  #5 (permalink)  
Antiguo 08/06/2010, 10:40
charlescuella
 
Fecha de Ingreso: febrero-2009
Mensajes: 489
Antigüedad: 15 años, 3 meses
Puntos: 8
Respuesta: como puedo hacer este while

amigo en donde pongo el q no me da
Código PHP:
if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "formcliente")){
    
$stocks $_POST['stock'];
    
$codArt $_POST['codarticulo'];
    
$max count($stocks);
    
$i 0;
    while(
$i $n){
        
$updateSQL sprintf("UPDATE articulos SET stock=stock +%d WHERE codarticulo='%s'",
                        
GetSQLValueString($stocks[$i], "int"),
                        
GetSQLValueString($codArt[$i], "int"));
        
mysql_select_db($database_fstore$fstore);
        
$Result1 mysql_query($updateSQL$fstore) or die(mysql_error());
        
$i++;
    } 
__________________
sitios
www.avisoya.com
www.yavendi.com