Home  >  Article  >  Backend Development  >  怎么将已经下传的图显示到前台

怎么将已经下传的图显示到前台

WBOY
WBOYOriginal
2016-06-13 13:22:391000browse

如何将已经上传的图显示到前台
我的图片保存路径已经有了
数据库中叫PicUrl

/test/uploads/1340957340.jpg

那我在前台怎么显示?
我现在是这样的 
$sql = "select ProName,text,ProID,PicUrl from products where ProID=$id";
$query = mysql_query($sql);

' ?> 我也觉得有错误,但是怎么改啊,高手指教

------解决方案--------------------
$query = mysql_query($sql);
$row=mysql_fetch_assoc($query);
' ?>

------解决方案--------------------
" ?>
------解决方案--------------------
print_r($row); 数据库有不有数据哟?
------解决方案--------------------
" ?>
#在html中可直接:
 怎么将已经下传的图显示到前台 ' />
另,确定你的路径是正确的,查看页面源码
------解决方案--------------------
 
 怎么将已经下传的图显示到前台 ' />
 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn