/
home
/
buyersch
/
public_html
/
Upload File
HOME
<?php $username = "buyersch_post"; $password = "FDDdma222"; $host = "localhost"; $database = "buyersch_question"; @mysql_connect($host, $username, $password) or die("Can not connect to database: ".mysql_error()); @mysql_select_db($database) or die("Can not select the database: ".mysql_error()); $id = $_GET['id']; if(!isset($id) || empty($id)){ die("Please select your image!"); }else{ $query = mysql_query("SELECT * FROM forum_question2 WHERE id='".$id."'"); $row = mysql_fetch_array($query); $content = $row['data']; //header("Expires: Sat, 31 Oct 2015 05:00:00 GMT"); if($content) { header('Content-type: image'); echo $content; } else { header( 'Location: http://www.buyerscharm.com/404' ); } } ?>