I have a PHP & MySQL website and I want to synchronize some event on it
Example:
We have two pages: colors.php, manageColors.php We have three users: user1, user2, user3
user1 and user3 open colors.php page, the color now they are seeing is red
User3 open manageColors.php and he change the color to purple
user1 and user2 directly without refreshing the page the color in colors.php changes to purple.
Please does anyone have any clue how to do it? Even if Php & MySQL isn’t enough to achieve this, guide me to another programming language that is able to.
I tried to create a table in my db that holds the color that is chosen by the user3
Colors.php will show the value of the table
manageColors.php has a form to change the value of the color
user1 and user2 has to refresh their page on colors.php to get the new value of color