function gethash($id) { $res2 = getRequestByID($id); return $res2['hash']; }
//echo $req['reqNo']; //echo "<HI><br><br><br><br>\n"; $otherQuery = "update Requests set appStatus = 'Rejected', reqRejectReason = 'A request conflicting with your request was accepted.' where reqNo = {$req['reqNo']}"; //echo $otherQuery."\n"; execute($otherQuery); reject($req['creator'], $req['creatorEmail'], $req['room'], $req['reqNo'], getCC($rID)); reject($req['concernedPName'], $req['concernedPEmail'], $req['room'], $req['reqNo'], getCC($rID)); } } $req = getRequestByID($rID); accept($req['creator'], $req['creatorEmail'], $req['room'], $req['reqNo'], getCC($rID)); accept($req['concernedPName'], $req['concernedPEmail'], $req['room'], $req['reqNo'], getCC($rID)); } else { if ($_POST['reqAction'] == $c) { $sq = "update Requests set concernedAdmin = {$_POST['forwardID']} where reqNo = {$_POST['reqID']}"; $req = getRequestByID($rID); $emails = getEmails($_POST['forwardID']); //print_r($emails); foreach ($emails as $email) { forward($req['concernedPName'], $email, $req['room'], $req['reqNo'], $req['concernedPEmail'], getCC($rID)); } } } } //echo $sq; execute($sq); //echo "<br />"; //cho "HIHIHIII"; //print_r($clashArray); //echo "HIHIHIII"; echo "<script> window.location.replace('table.php') </script>";