I know the basics of PHP and MySQL. If I have a table called "Table1" having the "id", "name", "count". When the user submits messages, it will be made pending so that moderators have to approve it. So, there would be several moderators in my site and when two or more mods accepts the messages of the same user at the same time(which will update the message table as well as the "Table1" - increment "count" by 1), it cause problems. Am I correct ?
So, how to solve this ?
Edit1:
table1 contains the details of the registered users. another table("Table2") is used to store the messages which will store the user id, unique msg id, message, date, etc
Edit2:
the mod would update a field in the message table for those messages that he accepted (update table2 set approved=1 where msgid = 123
). and also, when he accept it, an update statement will be executed for table1 (update table1 set count = count+1 where userid = 5
). like that, i can eliminate the calling of count() - select count(msgid) from table2 where userid = 5