这可能很容易做到,但我什至不知道如何为搜索引擎制定我的问题(google | stackoverflow)。
我正在尝试根据数据库中的数据创建一个 HTML 表单。
我的问题:
我有这些列的表:
- ID
- 文件
- 语言
- ETC...
填充数据(示例):
//no < table > here
//only **file** column is really important for my select (that I am asking for)
id | file | lanugage | etc
====================================================================
1 |about.php | english | something
2 |conta.php | english | something
3 |mysql.php | hungar | something
4 |mysql.php | english | something
5 |mysql.php | french | something
6 |blog.php | french | something
选择后我要求数组应该是这样的
0 => about.php, 1 => conta.php, 2 => mysql.php, 3 => blog.php
解决方案
我正在寻找SELECT
或SELECT t1.file as from table as t1 group by Files的不同选项,
这很快:) 谢谢Files