i am inserting data into php script is done .but i have not getting how to update mulitiple rows using php script.
my code format is:
if(is_array($sheetData)){
//$sql = "INSERT INTO 13_product_id (product_id,ext_product_id) values ";
$valuesArr = array();
$flag=0;
foreach($sheetData as $row){
if($flag==0 || $row['E']== 'Not Found on build.com'){
$flag =1;
continue;
}
//print_r($row);
$product_id =$row['A'];
$ext_product_id=$row['D'];
// $valuesArr[] = "('$product_id','$ext_product_id')";
}
$sql = "UPDATE 13_product_id SET ext_product_id='$ext_product_id[$row]' WHERE product_id='$product_id[$row]'";
//$sql .= implode(',', $valuesArr);
print_r($sql);
//mysqli_query($con,$sql) or exit(mysqli_connect_errno());
}
mysqli_close($con);
?>