Avatar of baumli1

asked on 

How to have messages show up on a user's page like a chat program using php

I have an admin page that an admin is able to send a message.
I have another user page that needs that message to show up as soon as its sent.
I want the function of a chat feature, but need to write it myself.  I don't need the full chat program function, I want the admin to enter a message into the database using a form, then I want that record to automatically show up on a user's page.  I'm not sure how chat programs work, but from a user standpoint when the senders message shows up, that's the effect that I want to create on my page.  Something automatic so that the user does not have to refresh the page to see if the database has changed.  Open to any and all suggestions.

Avatar of undefined
Last Comment

8/22/2022 - Mon