General discussion

Locked

Message ID problem

By eddiekwlau ·
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?

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Message ID problem

by insomniaa In reply to Message ID problem

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.

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums