This is a great site that has a few tutorials on how to create web applications using the Google Maps API, and PHP / MySql. It helped me a lot. Check it out!
SELECT tag,bCount FROM sc_hottags ORDER BY RAND(),bCount DESC, tag
LIMIT 25 in /home/usebetac/public_html/marktag.com/includes/db/mysql.php on line 390