Jump to content

message system


proctk

Recommended Posts

HI

 

I'm looking for advice on how to setup my mysql table to handle reply to messages.  Below is my current table structure.  I could add another column replys

 

any help or advice is great

 

CREATE TABLE `messagecenter` (

  `message_id` int(11) NOT NULL auto_increment,

  `sender_id` int(11) NOT NULL,

  `receiver_id` int(11) NOT NULL,

  `subject` varchar(255) collate latin1_general_ci NOT NULL,

  `message` text collate latin1_general_ci NOT NULL,

  `date_sent` datetime NOT NULL,

  `opened` varchar(50) collate latin1_general_ci NOT NULL,

  `date_opened` datetime NOT NULL,

  `status_to` varchar(50) collate latin1_general_ci NOT NULL,

  `status_from` varchar(50) collate latin1_general_ci NOT NULL,

  PRIMARY KEY  (`message_id`)

 

 

Link to comment
https://forums.phpfreaks.com/topic/65910-message-system/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.