从数据库显示图像 [英] showing image from database

查看:89
本文介绍了从数据库显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到的问题是,当客户端登录系统时,我们希望显示所有信息(来自nocsis表),然后将姓氏与图像表匹配。一切都与我的选择声明一致,唯一的问题是图像没有出现。我相信什么是diplayed是MIME。如何显示实际图像。在此先感谢


展开 | 选择 | Wrap | 行号

解决方案

您必须显示图像内容,如[php] echo"< img src = \""

myrow [图像]"。\">英寸; [/ php] Ronald



您必须显示图像的内容,例如[php] echo"< img src = \""

the issue I am having is when a client logs into the system we want all their info to show up (from the nocsis table) then match the last name to the image table. All is working well with my select statement the only problem is the image doesn''t show up. I believe what is diplayed is MIME. How do I get the actually image to display. Thanks in advance


Expand|Select|Wrap|Line Numbers

解决方案

You will have to show the content of image, like this[php]echo "<img src =\"" .


myrow[''image'']."\">"; [/php]Ronald


You will have to show the content of image, like this[php]echo "<img src =\"" .


这篇关于从数据库显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆