<pre><?php // Database Connection $conn = new mysqli('localhost','acifinan_acifinan','Finance_01','acifinan_acifinanc'); //Check for connection error $select = "SELECT * FROM `infopdf`"; $result = $conn->query($select); while($row = $result->fetch_object()){ $pdf = $row->filename; $path = $row->directory; $date = $row->created_date; $file = $path.$pdf; } // Add header to load pdf file header("Content-disposition: inline; filename=".basename('theme/assets/pdf/ci.pdf')); header('Content-Transfer-Encoding: binary'); header('Accept-Ranges: bytes'); @readfile($file); ?> <br/><br/> <iframe src="<?php echo $path.$pdf; ?>" width="90%" height="500px"> </iframe>
<input type="Submit" id="btnNow" class="btn apply-btn mt-30" name="button" value="APPLY NOW"> <div id="dialog" style="display: none"></div>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)