不能这么输出
这么输出只能显示一张全部输出,要先输出成图像文件,然后在打印<img src='xx1'> <img src='xx2'>

解决方案 »

  1.   

    for($i=1;$i<=$row;$i++){
    $getdata1=mysql_fetch_array($sql);
    }
    起码要这样吧
      

  2.   

    while($row=mysql_fetch_array($result))
    {
    ....}
    这样可以吗??
      

  3.   

    for循环就好了,你的错误是什么?贴出来。
      

  4.   

    需要两个PHP文件,一个用来生成图片列表页面,一个用来生成单张图片,如://list.php
    $result=mysql_query("select logoid from table_2");//logoid为主键
    if(@mysql_num_rows($result))
    while($row=mysql_fetch_row($result))
    echo "<img src='show.php?logoid={$row[0]}'/>";//show.php
    $result=mysql_query("select logo from table_2 where logoid=".$_GET['logoid']);//要防注入
    if(@mysql_num_rows($result)){
    $row=mysql_fetch_row($result);
    header("content-type:image/jpeg");
    echo base64_decode($row[0]);
    }