http://www.bkjia.com/PHPjc/320489.htmlwww.bkjia.comtruehttp://www.bkjia.com/">
时间:2021-07-01 10:21:17 帮助过:20人阅读
$conn=@mysql_connect("localhost","root","123") or die("服务器连接错误!"); //链接数据库
@mysql_select_db("upload",$conn) or die("未发现数据库!");
$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;
?>
上面是图片提取
前台显示文件
代码如下:
http://www.bkjia.com/PHPjc/320489.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/320489.htmlTechArticleimage.php文件 代码如下:
?php $conn=@mysql_connect("localhost","root","123") or die("服务器连接错误!"); //链接数据库 @mysql_select_db("upload",$conn) o...