So I am trying to make let's say, a chat software. For this example there will be two users X and Y and the Database named DB:
1. Both X and Y are connected to DB
2. X sends a message through a form by clicking submit,
3. the message is then recorded into DB
4.
id|from|to|message
17|X |Y |Hello!
5. DB instantly sends sql result
6. Y sees "Hello!" on his screen.
The only, but the most important part is #5. How to do that?