i`m a beginner to php and i have a problem sorting the mysql table.
i want to sort all data in the mysql database like this:
$abfrage = "SELECT jahr,monat,tag,vorname,nachname,email,lowscore from gewinnspiel where monat like '$month' ORDER BY lowscore LIMIT 0, 999";
but then i want to remove all duplicate "email" rows.
first:
email lowscore
ww@test.de 225
ww@test.de 285
ww@test.de 295
ton@aba.de 300
after sorting the table schould look like this:
ww@test.de 225
ton@aba.de 300
hope you can help me - thanx