I have a php chat script on my site that I made, and I want to add in an anti-spam measure so that it wont post your message if the last 5 messages in the mysql table are by you.
Do I have to cycle through the last 5 with a recordset or is there a SQL statement that can just check this for me?
the table fields are just 'date' 'text' 'userid'