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

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
}

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.

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.