Home > Backend Development > PHP Tutorial > easyui-php如何获取数据库中blob,然后将他显示到datagrid中

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

WBOY
Release: 2016-06-02 11:33:27
Original
1180 people have browsed it

easyuiphp上传图片datagrid

现在php已经将图片存入到数据库中,类型blob。

<code>     <?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"    style="max-width:90%" alt="easyui-php如何获取数据库中blob,然后将他显示到datagrid中" ></p>'; ?></code>
Copy after login
<code>            <table class="easyui-dategrid" url="../php/testlist.php">                 <thead>                   <tr>                        <th field="pic" width="120">图片</th>                     </tr>            </thead>    </table></code>
Copy after login

如何修改一下?

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template