如何将图像存储到mysql数据库并使用php将它们作为图像检索到我的php页面 [英] How to store images to mysql database and retriving them as image to my php page using php
本文介绍了如何将图像存储到mysql数据库并使用php将它们作为图像检索到我的php页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在他们的一个字段中注册了.我已经上传了图片,我无法存储和检索它们?
请任何人帮忙...
Hi i have registration form their one field .i have upload image i am not able how to store and how to retrive them ?
Pls Can anyone help out...
推荐答案
我将图像的文件路径存储在数据库中,而不是图像本身(这也减轻了在最后显示图像),但是...
看看那些 ^ ]:
此文章 [
I would store the file path to the image in the database, not the image itself (this would also ease the fact of showing the image at the end), but...
Take a look at those resources[^]:
This article[^] will show it to you.
PS: the link to google results is simply a link to a google search with the text: store images to mysql database and retriving them as image to my php
Hope this helps.
这篇关于如何将图像存储到mysql数据库并使用php将它们作为图像检索到我的php页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文