yeoys2003
2009-04-16 09:01:26 UTC
no = auto increment number
id = id number of image
cat = image category
no, id, cat
1, 1, dance
2, 2, dance
3, 1, sing
4, 2, sing
5, 3, sing
6, 3, dance
7, 4, dance
8, 1, cook
9, 2, cook
So how do i generate the sql so i juz show all categories (order by latest updated) with the latest uploaded image.
Example
Cook2.jpg //newest image of the newest category
Dance4.jpg // newest image of 2nd newest category
Sing3.jpg // newest image of 3rd newest category
i have tried many times and failed many times. what is the SQL statement so i can generate that?