i have this webpage that is storing messages posted into a database. what i'm trying to do is:
check how many messages are in the database on load, then have a loop that every 10 seconds will check if there are more messages, if so display them, if not start the loop again.
i was looking to do this with php and use mysql_num_rows($query) to check the rows but couldn't figure out how to get the loop.
so i have been directed to use AJAX to do it.
any idea's on where to start? i have read the tutorial on ajax at w3school.com, but that's about as far as my AJAX knowledge goes...