nkt
Založený: 16.05.2008
Príspevky: 14
Zaslal: 2008-06-05 20:00
Návrat hore
Odpovedať s citátom
|
Hi,
I want to list the latest updated record using MAX(Date) function.
My Mysql query is as follows.
SELECT User,Projects,Test_Cases,MAX(Date) FROM table1 group by Projects,USER order by User, Date DESC;
I have follwing fields in table.
User, project, Testcases, Date , Test platform.
How do I get this on the list page?
|
franciscohm
Založený: 08.05.2008
Príspevky: 33
Zaslal: 2008-06-14 10:33
Návrat hore
Odpovedať s citátom
|
Hi there,
I do not know how you really want to make it. But i do it in my forms using:
| Kód: |
| $opts['sort_field'] = array('-insert_date'); |
At the top of my form.
If you want the reverse order then it would be:
| Kód: |
| $opts['sort_field'] = array('insert_date'); |
Greetings
Francisco
|
michal
Založený: 17.06.2003
Príspevky: 537
Bydlisko: Slovakia
Zaslal: 2008-07-08 02:13
Návrat hore
Odpovedať s citátom
|
or use a sql view...
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|