php 读取图片,我从数据库读取图片要显示,可怎么显示的是只有图片名称??一下是我的代码
各位达人,指教~~~~~~·
<script>
function inserttag(topen){document.getElementById('yincang').value=topen;}
</script>
<?
$conn=mysql_connect("localhost","root","");
mysql_select_db("lanjing",$conn);$result = mysql_query("SELECT * FROM guanli_img");while($row=mysql_fetch_array($result))
{
echo $row['name'];
}function get_ubb($str) {
   
 $str = "<img src='$str' >";
  return $str;
}
  
?>
<form action="" method="post"><input name="yincang" type="hidden" value=""></form>