-3

I have a fully functional website, to which I want to add the ability for members to email each other, kinda like facebook, but much smaller, so I won't need their need for huge traffic.

Basically I need a starting point. Any suggestions?

jgauffin
  • 99,844
  • 45
  • 235
  • 372
dumbfreak
  • 37
  • 3
  • 10

1 Answers1

2

First step is to design the tables to store the mail objects.

One approach which works is to set up a mail "hasMany" children relationship, which basically means that a single mail object will have an id column and a self-referential parent_id column like this:

mail:
id , parent_id, create_time , from_user_id , to_user_id , textual_content

or something similar.

Donal.Lynch.Msc
  • 3,365
  • 12
  • 48
  • 78
  • no i have all the tables for it already, i got the messages table and the inbox and outbox. i don't know how to start coding it though – dumbfreak Sep 01 '11 at 14:33