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++;
}