I am trying to create a new script that will allow awards to be removed from a pilot that already has awards. Reason? double posting of awards requires removal.
I have created this script and I am close but far.
} elseif($Delete_Award) {
$frm_pilot = $POST['frm_pilot'];
$frm_award = $POST['frm_award'];
if(!$frm_pilot || !$frm_award) {
include("header.inc.php");
ShowErrorPage('One field is missing');
}
$Delete = new MySQLquery;
$Delete->query('DELETE FROM PilotAwards WHERE pw_user_id = ' . $frm_award',' . $frm_pilot');
The last line is not right.....I can't seem to find where I'm not getting it correct. This line that I tried: $Delete->query('DELETE FROM PilotAwards WHERE pw_user_id = ' . $frm_pilot);.........works, but it deleted ALL of the awards.....not quite what I want. I only want to delete the award that is selected (frm_award)
Any help would be appreciated.
Biter