程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程綜合問答 >> easyui-php如何獲取數據庫中blob,然後將他顯示到datagrid中

easyui-php如何獲取數據庫中blob,然後將他顯示到datagrid中

編輯:編程綜合問答
php如何獲取數據庫中blob,然後將他顯示到datagrid中

現在php已經將圖片存入到數據庫中,類型blob。

     <?php
        $sql = "select pic from e_user where uid = '1dff5b51f862e6d181577e3ca34248be'";
        $js = get_js_object($sql);
        Header( "Content-type: image/png");
        echo $js->pic;  
        echo '<p><img src="../php/testlist.php" width="150"></p>'; 
?>

            <table class="easyui-dategrid" url="../php/testlist.php">
                 <thead>
                   <tr>
                        <th field="pic" width="120">圖片</th> 
                    </tr>
            </thead>
    </table>

如何修改一下?

最佳回答:


<table class="easyui-dategrid" url="../php/testlist.php">
<thead>
<tr>
    <th field="pic" width="120"><?php echo $js->pic;?></th> 
</tr>
</thead>
</table>
sigklphp
zhangbin1988
sigklphp
zhangbin1988
sigklphp
zhangbin1988
sigklphp
zhangbin1988
zhangbin1988
sigklphp
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved