include 'pmheader.php';
require_once "dbpmconfig.php";
$id = ($_GET['id']);
$sql = "DELETE FROM subcontract WHERE id=$id";
$sql2 = "DELETE FROM table_bb WHERE id=$id";
echo $id;
$res = mysql_query($sql,$mysql);
$res2 = mysql_query($sql2,$mysql);
$link = "Return";
//deleting commitment from database
if ($res == TRUE) {
echo " ";
echo "Your request has been sent. ";
} else {
printf("There was an error in your request. Please contact support and reference: %s\n", mysql_errno($mysql));
}
//deleting scomments from database
if ($res2 == TRUE) {
echo " ";
echo "Your request has been sent. ";
} else {
printf("There was an error in your request. Please contact support and reference: %s\n", mysql_errno($mysql));
}
?>
Back
}?>
|