I am having a problem with some php not evaluating the way I would like. On a page that is included on many different pages, I have the following code:
PHP Code:
<a href="http://www.albany.k12.or.us/wahs/teacherpages/welshstuart/class1/calendar/<?php if ($addLevel) {include("../../../currentmonth.php");} else {include("../../currentmonth.php");} ?>.php">Calendar</a>
And on the pages that I have the above code included, addLevel is either set to 1 or not defined at all. For a while this system worked great. Just this past weekend however some work was done on the server that I use and now I get the following error message: "Warning: undefined variable $addLevel..."
Anyone see what I am doing wrong? Here is a URL where it is being used:
http://albany.k12.or.us/wahs/teacher.../bulletins.php
Click on one of the classes and then on 'Calendar'