Jump to content

Member Comment Database Structure help please :D


JonnySnip3r

Recommended Posts

Hey guys im making a comment system where members can type a message to another member and then the other member can log in from their account and see the comment and then post a message and visa versa. Anyways i have been trying different wayts but cant think or get it to work correctly so could someone point me in the right direction of a database structure? that way i could work from that and finish this brain swelling thing haha.

 

Thanks guys below is my current structure.

 

message_id tinyint(4) No None auto_increment

message_to_member_id tinyint(4) No None

message_from_member_id tinyint(4) No None

message_title varchar(128) latin1_swedish_ci No None

message_content text latin1_swedish_ci No None

message_time_date varchar(128) latin1_swedish_ci No None

member_image varchar(128) latin1_swedish_ci No None

message_reported tinyint(4) No None

message_reply tinyint(4) No None

message_reply_id

 

i have a function i created where u pass in the member_id and it spits out the name hope someone can help thanks!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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