} $row = mysql_fetch_assoc($rs); if( ($_SESSION['CurrentUser']['login_type'] == "ADMIN") || ($_SESSION['CurrentUser']['login_type']=="LIBSTAFF") || ($_SESSION['CurrentUser']['mid']==$row['mid']) ){ // Is this operation allowed $result = $re->CancelReservation($_REQUEST['rid']); header("Location: my_reservations.php"); exit(); } else { $_SESSION['BackLink'] = $_SERVER['PHP_SELF']; trigger_error("You are not allowed to perform this operation.", E_USER_ERROR); exit(); } } $re = new Reservations; $rs = $re->GetReservedBooks_byMID($_SESSION['CurrentUser']['mid']); $rsNo = mysql_num_rows($rs); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Pusthaka: <?php echo $PageTitle; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="css/styles.css" rel="stylesheet" type="text/css"> </head> <body> <?php include("../inc/top.php"); ?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td class="margin"><table width="100%" border="0">