query($sql);
$row = $result->fetch_assoc();
$checkuid = $row['uid'];
$expire_date = $row['exp_date'];
$view_filetemp = $row['temp'];
$deleted= $row['deleted'];
// if ($deleted == 1){
// echo 'The file is deleted.';
// }
// if (date('Y-m-d') <= $expire_date ) {
// // Display the file using an iframe, so the URL won't be shown
// echo $view_filetemp;
// $filename = basename($view_filetemp);
// // Output the PDF using the