$terms = array("", "1020", "1030", "2020", "2030", "3020");
$year = date('y');
$next = substr(date('Y')+1,2,2);
$_1020 = $terms[1] . "-" . $year;
echo $_1020 . "<br />";
$query_1020 = "SELECT * FROM {$_1020} WHERE 1";
echo $query_1020 . "<br />";
$result_1020 = mysql_query($query_1020) or die("<h2>WTF!</h2>");
My problem is that my query dies. I can't see the error. I'm also really tired. Maybe someone can help my weary eyes. I may figure it out later, but any help anyone can offer would be much appreciated.