I am trying to get the four top scores for a bowling team. I have the names of all the members and three game scores (pins*)
SELECT name, pins1 FROM bc_averages WHERE league = '$list[league]' UNION ALL SELECT name, pins2 FROM bc_averages WHERE league = '$list[league]' UNION ALL SELECT name, pins3 FROM bc_averages WHERE league = '$list[league]' ORDER BY pins1 DESC LIMIT 4";
$sql_result = mysql_query($sql,$link) or die(mysql_error());
Right now I get 194 henry 192 henry 191 henry 190 john
I get all the scores in order (I think) but if one bowler gets three highest scores, he/she is shown three times. I need to show four individuals that have top scores.
I need 194 john 190 john 184 suzi 182 gloria
New but learning more each day!