thanks, so the entire query would look soemthing like:
$query = "SELECT COUNT() FROM imagestats";
$result = mysql_query($query);
$query = "SELECT image_id, COUNT() AS count FROM imagestats GROUP BY image_id ORDER BY count DESC LIMIT 10";
$result = mysql_query($query);
$row = mysql_fetch_row($result);
and that would leave $row as an array containing the top 10 images clicked?
I dont really understand mysql and to eb honest i dont see how the 2 queries relate....
would the above work?
thanks