Is it bad to compile all user messages into one table?






I have a forums site I am creating with PHP and SQL.

I am thinking about compiling all user messages into one table called user_messages

It would be like:

Code:

<?php

$senderId = 2;
$recipientId = 3;
$userMessage = "Hey, how's it going my friend?!";
$postedOn = date('m-d-y');

$insertMessage = $conn->prepare("
INSERT INTO user_messages(user_sender_id, user_recipient_id, user_message, posted_on)
VALUES(?, ?, ?, ?)

");
$insertMessage->bind_param("iiss",...

Read the entire article at the source link…

We're happy to share this resource that we found. The content displayed on this page is property of it's original author and/or their organization.

Leave a Reply