Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3

Thread: help with...

  1. #1
    New to the CF scene
    Join Date
    Dec 2003
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    help with...

    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!!

  • #2
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You might wanna choose a more descriptive title, or else, you might want to specify what exactly you need info on or help with ....

  • #3
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    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
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •