Answer the question
In order to leave comments, you need to log in
How to correctly display notifications from the database?
The header displays notifications from the notification table On the bonus.php
page , there are several links leading to:
bonus.php?open=1
bonus.php?open=2
When you click on the link, the text, User ID, and flag are added to the notification table.
Immediately after the addition, there is a redirect to bonus.php without a parameter
How to display a notification and delete it or change the flag the next time the page is reloaded?
Answer the question
In order to leave comments, you need to log in
Immediately upon output on the page with the output, write the necessary information into a variable, and clear the base.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question