0

<h3>In php how do you create accounts and let the user send messages to each other which cannot be viewed by other people .</code></h3>

<h2>The only thing i have come close to is by creating accounts by giving each one them an unique email id and let them send and recieve messages using smtp server.</h2>

Does php have anything better,or somebody can suggest something better.

4
Contributors
4
Replies
5
Views
10 Years
Discussion Span
Last Post by w_3rabi
0

Set up your database with a User table and a Mail table.

When a user logs in, have it query the Mail table for any entries assigned to them.

I'd set up my tables somewhat like this.

User
{
    id -> int
    name - varchar[128]
    email - varchar[256]
    md5(password)
}
 
Mail
{
    id -> int
    from -> int (references a User.id)
    to -> int (references a User.id)
    date -> datetime
    read -> boolean
    replied -> boolean
}
0

Yeah, just use PHP. What i did for a network support ticketing system was to modify some guestbook code. You aught to be able to do the same thing.

0

Thanks man for the help ,will try to do that.

dude for the next times could mark the thread as solved when u think it is so we dont read it all again
thanks anyway

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.