Discussion Locked

Message ID problem

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
For a message board program, I assign a message ID which uniquely identify each message and it is autoincrement as a new message created. But when times go on the message ID will become larger and larger. How to deal with this situation? Or is thereany other methods to uniquely identify a message in a message board program?

1 reply

by insomniaa

Hi

What you code do is concatenate a string to include the date; something like this:

"message02/05/01%20 09.33.34"

That should be a unique identifier - are you likely to get people posting messages at exactly the same time?

I doubt thatpeople would submit at exactly the same question.

Hope that helps.

This discussion is closed to new replies.