yvorl
11-25-2008, 10:29 AM
Hi!
I've a table:
table0
id number version page date
1 5783001 00 01 20081015
2 5783001 00 02 20081015
3 5556661 05 01 20061015
4 5783001 01 01 20081111
and I'd like to write a query, which selects rows with a specific number with the same page numbers in a group and these ordered by date desc.
For example: SELECT from table0 WHERE number='5783001' ...????
I mean in the end a want them in a variable something like this:
$doc[0][0]='5783001-01-01-20081111'
$doc[0][1]='5783001-00-01-20081015'
$doc[1][0]='5738001-00-02-20081015'
I hope you understand my problem. :/
How can i do this?
Thx for the help
I've a table:
table0
id number version page date
1 5783001 00 01 20081015
2 5783001 00 02 20081015
3 5556661 05 01 20061015
4 5783001 01 01 20081111
and I'd like to write a query, which selects rows with a specific number with the same page numbers in a group and these ordered by date desc.
For example: SELECT from table0 WHERE number='5783001' ...????
I mean in the end a want them in a variable something like this:
$doc[0][0]='5783001-01-01-20081111'
$doc[0][1]='5783001-00-01-20081015'
$doc[1][0]='5738001-00-02-20081015'
I hope you understand my problem. :/
How can i do this?
Thx for the help