您好,欢迎访问一九零五行业门户网

显示保存在mysql数据库中图片代码_PHP教程

显示保存在mysql教程数据库教程中图片代码
header( content-type:image/gif );
include( ../inc/conn.php教程 );
mysql_select_db( ce_cdprog ,$db);
$rs=mysql_query( select   *   from   pic   where   id=$id );
$row=mysql_fetch_array($rs);
echo   $row[ mc ];//方法二
while (($row=$results->fetch_assoc()) !==null)
{
header( content-type:{$row['image_type']});
echo $row['image'];
imagedestroy($img);
} //图片保存到数据库
move_uploaded_file($_files['imagefile']['tmp_name'],latest.img);
   $instr = fopen(latest.img,rb);
   $image = addslashes(fread($instr,filesize(latest.img)));
   if (strlen($instr)       mysql_query (insert into pix (title, imgdata) values (.
      $_request[whatsit].
      , .
      $image.
      ));
   } else {
      $errmsg = too large!;
   }
http://www.bkjia.com/phpjc/630853.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/630853.htmltecharticle显示保存在mysql教程数据库教程中图片代码 header( content-type:image/gif ); include( ../inc/conn.php教程 ); mysql_select_db( ce_cdprog ,$db); $rs=mysql_query( sele...
其它类似信息

推荐信息