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 tag with no download option // echo ' //

It appears you don\'t have Adobe Reader or PDF support in this web browser. // Click here to download the PDF

//
'; // } else { // // Show the link is expired message // echo 'The link is expired.'; // } ?> "; // echo $uid . "
"; if ($checkuid == $uid) { if ($deleted == 1) { echo 'The file is deleted.'; } elseif (date('Y-m-d') <= $expire_date) { // Display the file using PDF.js if it's not deleted and not expired ?> PDF Viewer