How can I check if a variable is between 2 values? I have a pull-down listbox filled with dates from 1995-2002 and I have it come up so the correct entry is selected when the page is loaded but I also have a text-entry field for other dates not in the list that I want to display the variable $circa when it doesn't match between 1995 and 2002. <takes breath>
So, I need some kind of if statement like:
<?if($circa<'1995' or >'2002'){echo $circa;}?>
...but that doesn't work and gives the error:
Parse error: parse error, unexpected '>'