foreach($_POST['chkKey'] as $key=>$value)
{
$sq1 = "INSERT INTO strengthkf(keyID, strID)
VALUES ('".$_POST['chkKey'][$key]."','".$strID."')"; //get keyID into strKF table
$qr= mysql_query($sq1) or die(mysql_error());
}
update ต้องแก้ตรงไหนคะ Code (PHP)
foreach($_POST['chkKey'] as $key=>$value)
{
$sq1 = "UPDATE strengthkf SET keyID = '".$_POST['chkKey'][$key]."'
WHERE strID = '".$strID."' AND keyID = '".$_POST['chkKey'][$key]."'";
$qr= mysql_query($sq1) or die(mysql_error());
}