How to save notifications for multiple users in phpmysql database without overloading the database with records
P粉068174996
P粉068174996 2024-03-30 22:51:20
0
1
502

I'm concerned that I could easily create a crawl in the database while trying to ensure that all users in the database can view the same messages. The problem is that I need to be able to send a message from my admin area and have all users receive notifications and also have the option to mark the message as read. I know I should create two tables but how to write sql commands to generate messages for all users becomes frustrating. This may be a simple task but I need help

I try to create two tables in my database. Notification and has__notify. Notification holds the message along with its title and creation date, while (has__notify) on the other hand contains columns like notificationID (foreign key), userID (foreign key) - to know which user has read the message, dateRead. However, I think my implementation is wrong as I'm already a bit confused.

P粉068174996
P粉068174996

reply all(1)
P粉015402013

By default, the table is never locked during inserts. If you want to make sure the data is stored, you can use transactions.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template