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:



$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(?, ?, ?, ?)


Read the entire article at the source link…

#codango #developer #development #coder #coding

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

Your email address will not be published. Required fields are marked *