need help in php

Reply

Join Date: Apr 2007
Posts: 3
Reputation: azharcs is an unknown quantity at this point 
Solved Threads: 0
azharcs azharcs is offline Offline
Newbie Poster

need help in php

 
0
  #1
Apr 24th, 2007
<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.
Reply With Quote Quick reply to this message  
Join Date: Mar 2004
Posts: 802
Reputation: Phaelax is on a distinguished road 
Solved Threads: 40
Phaelax Phaelax is offline Offline
Practically a Posting Shark

Re: need help in php

 
0
  #2
Apr 25th, 2007
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.

  1. User
  2. {
  3. id -> int
  4. name - varchar[128]
  5. email - varchar[256]
  6. md5(password)
  7. }
  8.  
  9. Mail
  10. {
  11. id -> int
  12. from -> int (references a User.id)
  13. to -> int (references a User.id)
  14. date -> datetime
  15. read -> boolean
  16. replied -> boolean
  17. }
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 16,273
Reputation: jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all jbennet is a name known to all 
Solved Threads: 543
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Moderator

Re: need help in php

 
0
  #3
Apr 25th, 2007
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.
If i am helpful, please give me reputation points.
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 3
Reputation: azharcs is an unknown quantity at this point 
Solved Threads: 0
azharcs azharcs is offline Offline
Newbie Poster

Re: need help in php

 
0
  #4
Apr 28th, 2007
Thanks man for the help ,will try to do that.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 160
Reputation: w_3rabi is an unknown quantity at this point 
Solved Threads: 9
w_3rabi's Avatar
w_3rabi w_3rabi is offline Offline
Junior Poster

Re: need help in php

 
0
  #5
Apr 29th, 2007
Originally Posted by azharcs View Post
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum


Views: 1037 | Replies: 4
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC