Hello all you wonderful people
This week I have been working on a way to switch the pages, depending on what is in the database table (see the script below). What I am including is a fully functioning switch. However, what I would like to add, is a way to prevent directly going to one of the pages unless it's stated so in the database.
So another words, for this, if the database says "off" then the person can't go to "on.php" and will force to go to "off.php"
Currently, when someone goe