Home >Backend Development >PHP Tutorial >php怎么获取数据库中blob,然后将他显示到datagrid中

php怎么获取数据库中blob,然后将他显示到datagrid中

WBOY
WBOYOriginal
2016-06-13 12:13:441309browse

php如何获取数据库中blob,然后将他显示到datagrid中

<br /><?php<br />        $sql = "select pic from e_user where uid = '1dff5b51f862e6d181577e3ca34248be'";<br />        $js = get_js_object($sql);<br />        Header( "Content-type: image/png");<br />        echo $js->pic;  <br />        echo '<p><img  src="../php/testlist.php"    style="max-width:90%" alt="php怎么获取数据库中blob,然后将他显示到datagrid中" ></p>'; <br />?><br />

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


如何修改?
------解决思路----------------------
图片数据流只能用 img 标记接收
php怎么获取数据库中blob,然后将他显示到datagrid中
即由 ../php/testlist.php 输出
------解决思路----------------------
不知道你的弹框具体是如何实现

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