从xampp数据库在php中显示图像 [英] displaying an image in php from an xampp database

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

问题描述

我已经在php中编写代码,并设法连接到数据库并显示除了图像(BLOB)文件之外的所有信息。这是到目前为止的代码.....

展开 | 选择 | Wrap | 行号

解决方案

其中是显示图像本身的代码?


如果图像已存储在数据库中,我是否需要?

我是新手,我不太明白这是怎么回事!!


如果表中的所有信息都显示在页面不应该是图像那样做吗?

它只显示图像所在的图标....



如果图像已存储在数据库中,我是否需要?



浏览器可以直接读取数据库吗?


如果全部页面上显示的信息不应该是图像那样做的吗?



这给我们带来了一个问题:HTML如何显示图像?



只显示图像所在的图标....



回答0.5:不喜欢显示文字,显然......


Ive written code in php and have managed to connect to the database and show all the information from it except the image (BLOB) file. This is the code so far.....

Expand|Select|Wrap|Line Numbers

解决方案

where is the code to display the image itself?


do i need that if the image is already stored in a database?
I''m new to this and I don''t quite understand how this works!!

If all the information from the table displays on the page shouldn''t the image do that to?
It only displays like an icon of where the image would be....


do i need that if the image is already stored in a database?

can a browser read a database directly?


If all the information from the table displays on the page shouldn''t the image do that to?

which brings us to the question: how does HTML display an image?


It only displays like an icon of where the image would be....

answer 0.5: not like it displays text, obviously …


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

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