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

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

WBOY
Release: 2016-06-13 12:13:44
Original
1308 people have browsed it

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 />
Copy after login

<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 />
Copy after login


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

Related labels:
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