 <?php 
 	include_once"includes/conn.php";
 	$TN = $_SESSION['id'];
    $sql = "SELECT * FROM details WHERE TrackNum = '$TN' ";
    $result = mysqli_query($conn, $sql);
    if (mysqli_num_rows($result)>0) {
        while ($rows = mysqli_fetch_assoc($result)) {
            $SN = $rows['SN'];
            $SA = $rows['SA'];
            $Snum = $rows['Snum'];
            $RN = $rows['RN'];
            $RA = $rows['RA'];
            $Rnum = $rows['Rnum'];
            $PD = $rows['PD'];
            $Mode = $rows['Mode'];
            $DL = $rows['DL'];
            $AD = $rows['AD'];
            $Amt = $rows['Amt'];
            $Weight = $rows['Weight'];
            $Qty = $rows['Qty'];
            $Origin = $rows['Origin'];
            $Location = $rows['Location'];
            $Comment = $rows['Comment'];
            $held = $rows['Held'];
        }
    }
    
?>