Hi, please help me with my code.
Javascript function
if (document.myform.Available.checked == false) {
document.myform.Save.disabled = true;
<?php
$query = mysql_query("UPDATE rewarditems SET Available = 'Yes' WHERE RewardItemID = '{$_GET}'",$link1) or die(mysql_error());
?>
}
else if (document.myform.Available.checked == true) {
document.myform.Save.disabled = false;
<?php
$query = mysql_query("UPDATE rewarditems SET Available = 'No' WHERE RewardItemID = '{$_GET}'",$link1) or die(mysql_error());
?>
}
can this be done?
thanks