Thanks...that helped a lot, but I am still confused....I am trying to set the timestamp, but it is still using the UNIX timestamp, therefore always returning the current day (i.e. Wednesday)...any ideas on how to make it give me the corresponding day for the date given? Here is the code that I added...
$Link=mysql_connect($Host,$User,$Password);
mysql_select_db("clickdb");
$Query = "select class_id,teacher_name from $TableName where (class_name = '$selectbox')";
$Result = mysql_db_query($DBName,$Query,$Link);
$Date = ($sel_year."-".$sel_month."-".$sel_day);
$Date2 = ($sel_month."-".$sel_day."-".$sel_year);
// this brings back current day in error (output below)
setlocale (LC_TIME, "$Date");
while ($Row = mysql_fetch_array($Result)){
$teacher_name=($Row[teacher_name]);
$class_id=($Row[class_id]);
}
global $class_id;
$Query2 = "select * from $TableName2 where class_id = '$class_id' and date = '$Date'";
$Result2 = mysql_db_query($DBName,$Query2,$Link);
$Row2 = mysql_fetch_array($Result2);
$description=($Row2[description]);
?>
<table border=2 width=525 cellpadding=0 cellspacing=0>
<tr>
<td colspan=2><?print "Date to Update: ";
print (strftime ("%A $Date2"));?>
</td>
</tr>