easyuiphp上传图片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" style="max-width:90%" alt="easyui-php如何获取数据库中blob,然后将他显示到datagrid中" ></p>
<div class="aritcle_card">
<a class="aritcle_card_img" href="/ai/2195">
<img src="https://img.php.cn/upload/ai_manual/000/000/000/175680269751753.png" alt="AI Word">
</a>
<div class="aritcle_card_info">
<a href="/ai/2195">AI Word</a>
<p>一款强大的 AI 智能内容创作平台,致力于帮助用户高效生成高质量、原创且符合 SEO 规范的各类文章。</p>
<div class="">
<img src="/static/images/card_xiazai.png" alt="AI Word">
<span>226</span>
</div>
</div>
<a href="/ai/2195" class="aritcle_card_btn">
<span>查看详情</span>
<img src="/static/images/cardxiayige-3.png" alt="AI Word">
</a>
</div>
'; ?><table class="easyui-dategrid" url="../php/testlist.php"> <thead> <tr> <th field="pic" width="120">图片</th> </tr> </thead> </table>
如何修改一下?
PHP怎么学习?PHP怎么入门?PHP在哪学?PHP怎么学才快?不用担心,这里为大家提供了PHP速学教程(入门到精通),有需要的小伙伴保存下载就能学习啦!
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号