LondonGuy
LondonGuy

Reputation: 11098

What's the best way to build a user to user messaging feature in codeigniter?

e.g. like emailing but in a website..

I've googled and can't seem to find anything.

Upvotes: 0

Views: 339

Answers (1)

kevtrout
kevtrout

Reputation: 4984

On a basic level, and sticking to the email analogy, you could store messages in a database. An example schema would include

message_id, sender_id, recipient_idS, subject, body, date_sent, read_status

You would have a user table, which is where the sender and recipient id's come from.

I've googled too, and found this to send your way: http://www.pixel2life.com/publish/tutorials/608/simple_private_messaging_system/

What kind of website are you building? What purpose does user messaging serve there? These pieces of information may affect how people answer.

Upvotes: 3

Related Questions