Thread: MySQL help
View Single Post
Old 08-23-2004, 09:40 AM   #17 (permalink)
hatchet
v7n Mentor
 
hatchet's Avatar
 
Join Date: 10-11-03
Posts: 1,137
iTrader: 0 / 0%
Latest Blog:
None

hatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nicehatchet is just really nice
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..
hatchet is offline   Reply With Quote