+ 1

Advice how to understand messege sistem in php mysql?

logic is that you put messege to server then display it in your site but how show it exactly to the person where it was sent? thanks

7th Jun 2018, 6:44 PM
Nasibillo Muhamedov
Nasibillo Muhamedov - avatar
2 Antworten
+ 3
Probably you can create a sender & recipient Id field in the messages table, each these Id refers to a specific user account of your web. When a user logs on you select and display all recent records from the messages table where the recipient Id is the Id of current logged on user. Hth, cmiiw
7th Jun 2018, 8:30 PM
Ipang
+ 1
could you write some code shows how to do it?!
21st Jul 2018, 6:00 PM
Nasibillo Muhamedov
Nasibillo Muhamedov - avatar