Hi.
I've built a little site with php/mysql to server as a bulletin board for some friends. My table of messages looks like this:
posts:
msg_id varchar(100),
user_id INT,
day DATETIME,
primary key(msg_id)
What I would like to do is this: given a particular msg_id, find the 'next' msg_id where by 'next' I mean the message posted immediately after it.
So I guess I want something that acts like a secondary index based on date.
Any idea? And thanks much,
Matt