<?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="php如何获取数据库中blob,然后将他显示到datagrid中" ></p>'; ?>
<table class="easyui-dategrid" url="../php/testlist.php"> <thead> <tr> <th field="pic" width="120">图片</th> </tr> </thead></table>
图片数据流只能用 img 标记接收
即由 ../php/testlist.php 输出
图片数据流只能用 img 标记接收
即由 ../php/testlist.php 输出
不知道你的弹框具体是如何实现
这个src 可以动态赋值吗?
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号