...

View Full Version : help with...



myUsername
12-25-2003, 06:19 AM
hey everyone,

im making an email thingy... users on the website click "email us" then a form comes up, they fill it out, send it, and it goes into the database. Then when the admin logs into it, I want it to say "New Message" and then once they click on the link to view the new message, it will be read as read so the message wont pop up...

Like hotmail, or whatever..

hope this makes sense.

thx!!

raf
12-25-2003, 11:52 PM
You might wanna choose a more descriptive title, or else, you might want to specify what exactly you need info on or help with ....

A1ien51
12-26-2003, 04:07 PM
It is not hard, all you need to do is add another column in the database and make it a flag.

Make it 0 for unread and 1 for read

When the "email" is added to the database you set the flag to 0

When the person views the mail then you update the flag to 1

Eric



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum