I’m making a website for a friend and am wondering about the best way to do something.
It’s a flat site and he wants the ability to disable a banner advert without editing all the pages. I thought the best way to do this is have a file somewhere with a variable set to true then have a bit of php in the
Am i right in thinking i can put the following in the top of every page
Code:
<?php include_once('ad_switch.php'); ?>and then something like the following in the div that holds the banner
Code:
<?php if ($adswitch = true) { image goes here ;} ?>The problem i’m having is that the image is constantly displaying and i can’t get it to bugger off no matter what the $adswitch variable is set to.
Thanks