File: /home/rtbrisc/public_html/admin/main/track/new.php
<?php
require_once("../worker/workers/server/issues.php");
$ticketID = $_GET['tid'];
$check = mysqli_query($iss, "SELECT * FROM tblhelpdeskrequest WHERE TicketID = '$ticketID'");
if($row_check = mysqli_fetch_assoc($check)){
if($row_check['TrackStatus'] > 0){
header("Location: details.php?track=$ticketID");
}else{
$tid = $row_check['TicketID'];
$cid = $row_check['CustomerID'];
$tec = $row_check['TechnicianID'];
//echo $tec;
// if(empty($tec)){
// $_SESSION['tra_err'] = "This request has not been assigned to a technician. Please contact our customer care officer.";
// header("Location: available.php");
// }else{
header("Location: ../worker/workers/tracking.php?tid=$tid&cid=$cid&tec=$tec");
//}
}
}else{
$_SESSION['tra_err'] = "Invalid Ticket ID. Please make sure you are selecting the right content.";
header("Location: available.php");
}
?>