Answer the question
In order to leave comments, you need to log in
How to create group dialogs in PHP?
Hi all!
I decided to make a system of both group and private dialogues on my website. So far, I have implemented only private ones, that is, communication between two users with each other.
Structure of private dialogs:
dialogs - id, uid_to, uid_from
messages - id, message, from_id, to_id,
dialog
Answer the question
In order to leave comments, you need to log in
dialogs (id, name)
messages (id, dialog_id, text, user_id)
dialogs_users (dialog_id, user_id)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question