$sql = "UPDATE SET winners.note = '1' FROM winners LEFT JOIN products ON winners.id=products.id
WHERE winners.id = '$del_id' AND products.type = 'products' ";
ก่อนอื่นต้องเช็กค่าที่อัพเดทซะก่อน
exsample
check product if id_pro = paramiter id;
if check == true
update winner set note = 1 where id = paramiter id;
$sql = "UPDATE winners
LEFT JOIN products ON winners.id=products.id
SET winners.note = '1'
WHERE winners.id = '$del_id' AND products.type = 'products' ";