Help with a PHP messaging system

Hi,

Im new to this site and to asking questions online so please be kind.

I want to create a private messaging system for users on the site and am not really sure how to go about doing it.

I have a database table containing:
message_id
sentFrom
receivedBy
contents
time

I also have created prepared statement functions used throughout that cover the basic SQL functions such as:
select All
select One
Insert
update
delete

I am just not sure how to actually allow the users to send messages to each other and any help would be really appreciated :slight_smile:

Will these messages work like emails or a forum, or real time like a chat app?

1 Like

Like a chat app :slight_smile:

A sort of private messaging system

For a real time chat app, you need to learn about server > client communication. This is typically done through web sockets, so that’s what you need to look at next.

Sponsor our Newsletter | Privacy Policy | Terms of Service