Hi,
I've defined a constant.
at the beginning of my function.php file.
define ("CURRENT_SEMESTER", "fall 2001");
later on in the file (in a specific function) I want to use this constant in a mysql query.
$query = "SELECT DISTINCT $item FROM $table
WHERE semester = 'CURRENT_SEMESTER'";
But the query is just printing the word CURRENT_SEMESTER rather than the actual value.
How do I use this consant in my query? And, is there a way to declare this constant as a global variable so I can use in in other files?
thanks.