使用PHP从MySQL数据库显示图像需要帮助! [英] Display images from a MySQL Database using PHP help needed please !!
问题描述
你好,
请有人可以帮助我解决此问题:
如何显示来自数据库的图像,该图像首先显示最新添加的图像(基本上显示最后一个索引到第一个)
我拥有其余的代码,我需要如何访问文件?
例如:
Hi there,
Please can someone help me with this issue:
How do I display an image from a database showing the latest added images first (basically showing the last index to the first)
I have the rest of the code what I need is how do I access the files ?
eg:
<pre lang="PHP">
<?php
<a href="?"><img src="?" alt="" width="50px" height="50px"/></a>
?>
请帮我把?"放在哪里.
数据库称为分页,表称为图像.表`images`中有3列,即name_id,name,image.
我想按照name_id降序显示.
如果您甚至可以提供指向教程的链接来补充说明,我将不胜感激.
非常感谢,
Josh
please help where I have put the ''?''.
The database is called pagination, the table is called images. There are 3 columns in the table `images`, name_id, name, image.
I want to display it in descending order acording to name_id.
If you could even coment with a link to a tutorial that would help I would appretiate it.
Thanx alot,
Josh
推荐答案
Google搜索: ^ ].约4,380,000个结果
哇.如果您将问题提交到google,这就是您想要的.第一个链接实际上为您提供了完整的答案.
Google search: Display images from a MySQL Database using PHP[^]. About 4,380,000 results
Wow. If you had put your question into google, this is what you would have come up with. The first link actually gives you a complete answer.
这篇关于使用PHP从MySQL数据库显示图像需要帮助!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!