stoneygossard wrote:
> I am using a MySQL database with php through DW8. I have
a small problem ok. I
> have a football fixtures table with different age groups
playing matches so I
> use the following query string to extract the resultset
>
> "Select * from Fixtures sort by age ASC;"
>
> This is fine ok
Amazing, because that's not correct MySQL syntax. It should
be:
SELECT * FROM Fixtures
ORDER BY age ASC
> But can i add anything to the code to make it sort
within the ages then
> by "fixture_id" ascending? e.g. something like this:
> SELECT * from fixtures sort by age ASC AND fixture_id
ASC;
Yes:
SELECT * FROM Fixtures
ORDER BY age ASC, fixture_id ASC
--
David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://foundationphp.com/