<?php include('includes/config/config.php');?> <html> <head></head> <body> <?php $sql_medical_doc = "select * from medical_document where medical_exam_id='".$_REQUEST['medical_exam_id']."' order by id desc"; // echo $sql_medical_doc; $count=0; if (!$result_medical_doc = @mysqli_query($conn,$sql_medical_doc)) { echo "exception"; die(mysqli_error($conn)); }else{ if ($row_medical_doc = mysqli_fetch_assoc($result_medical_doc)) { extract($row); $data = $row_medical_doc; $content=base64_encode($row_medical_doc['medical_doc']); } } ?> <div> <?php if(!empty($content)) { ?> <object data="data:application/pdf;base64,<?php echo $content;?>" type="application/pdf" style="width: 100%; height: 100%; margin: 0px; padding: 0px;"> </object> <?php } ?> <h1>Document not exists!</h1> <p>Note: <br>1.First download hard copy and upload the self attested pdf file<br>2.Then download pdf file from here.</p> </div> </body> </html>