查看: 899|回复: 3
|
关于arrange data
[复制链接]
|
|
我想问我有以下的form,当user key in data 然后按 show result 就 会重database 拿 result 出来。我会把result show 出 来但是不 会跟着user enter 的sequence show 出来。请问有谁知道要怎样做?例如:-
user enter - product1,product3,product2,product4
result show 要 跟着 user enter sequence |
|
|
|
|
|
|
|
发表于 23-8-2006 11:00 PM
|
显示全部楼层
想问问你使用的是什么language来写的?
是PHP吗? |
|
|
|
|
|
|
|
发表于 24-8-2006 12:19 AM
|
显示全部楼层
??? this shouldbe control by sql command, just need to specified order by what, example order by id, update date,product name or etc.... |
|
|
|
|
|
|
|
发表于 24-8-2006 10:03 AM
|
显示全部楼层
原帖由 cytin 于 17-8-2006 09:29 AM 发表
我想问我有以下的form,当user key in data 然后按 show result 就 会重database 拿 result 出来。我会把result show 出 来但是不 会跟着user enter 的sequence show 出来。请问有谁知道要怎样做?例如:-
user ...
在资料库那里, 你可以加多一个 column, 用 auto increment/seed 或 date 来记录用户输入资料的排列先后. 在你输出资料显示的时候, 只要 order by 这 column 就可以了. |
|
|
|
|
|
|
| |
本周最热论坛帖子
|