D
D
devhub162016-09-08 15:18:09
PHP
devhub16, 2016-09-08 15:18:09

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

2 answer(s)
R
riot26, 2016-09-08
@riot26

dialogs (id, name)
messages (id, dialog_id, text, user_id)
dialogs_users (dialog_id, user_id)

N
noname2, 2016-10-27
@noname2

And with what frequency to update messages from a DB? And is it possible to somehow update only when there is a new message? riot26

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question