亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

php 從數(shù)據(jù)庫提取二進制圖片的處理代碼

 更新時間:2009年09月09日 21:57:49   作者:  
形式上類似UCH 只是存儲方式不一樣 本人比較愚鈍 這個問題困惑了我半天 希望對有同樣問題的phper有所幫助 高手們別見笑!
image.php文件
復制代碼 代碼如下:

<?php
$conn=@mysql_connect("localhost","root","123") or die("服務器連接錯誤!"); //鏈接數(shù)據(jù)庫
@mysql_select_db("upload",$conn) or die("未發(fā)現(xiàn)數(shù)據(jù)庫!");
$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;
?>

上面是圖片提取
前臺顯示文件
復制代碼 代碼如下:

<img src="image.php?fn=<?php echo $fn;?>">

相關文章

最新評論