where ID = '$ID_UP[$i]' ";
}
echo "$ID";
mysql_query($sql) or die ("update error: $sql");
echo $sql;
echo"<script>alert('completed');window.location='index.php';</script>";
?>
<?php
for ($i=0;$i<count($ID);$i++)
{
$pid = $ID[$i];
$pstatus = $status[$i];
$sql ="update product set
status = '$pstatus'
where ID = '$pid' ";
//
mysql_query($sql) or die ("update error: $sql");
echo $sql."<br>";
}
?>