|
So you have a start function for each page in an include file? Could you do the select above like this..
SELECT value AS disable FROM tablename WHERE name = website_disable;
then
if($disable = 1) {
echo "Sorry this page is under maintenance";
}
else {
run your start function code
}
Now it's different if you're going to have a true / false for each page.. then you'll need someway to set the page name to send to the function above..
|