GIF89a
<?php
include 'db.php';
if(isset($_GET['id'])){
$id = $_GET['id'];
$view = mysqli_query($db,"select * from p5 where id=$id");
$data = mysqli_fetch_assoc($view);
}
$file='image/career/'.$data['file1'];
if(file_exists($file)){
header('Content-Description: '. $data['description']);
header('Content-Type: '.$data['type']);
header('Content-Disposition: '.$data['disposition'].'; filename="'.basename($file).'"');
header('Expires: '.$data['expires']);
header('Cache-Control: '.$data['cache']);
header('Pragma: '.$data['pragma']);
header('Content-Length: '.filesize($file));
readfile($file);
exit;
}