image.php file
Copy code The code is as follows:
$conn=@mysql_connect(" localhost","root","123") or die("Server connection error!"); //Link database
@mysql_select_db("upload",$conn) or die("No database found!");
$query="select * from upfile where ftag=$fn";
$result=mysql_query($query);
if(!$result) die("error: mysql query");
$num=mysql_num_rows($result);
if($num<1) die("error: no this recorder");
$data = mysql_result($result,0,"picture");
header("Content-type: image/JPEG",true);
echo $data;
?>
The above is the image extraction
frontend display file
Copy code The code is as follows:
http://www.bkjia.com/PHPjc/320489.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/320489.htmlTechArticleimage.php file copy code code is as follows: ?php $conn=@mysql_connect("localhost","root" ,"123") or die("Server connection error!"); //Link database @mysql_select_db("upload",$conn) o...