that will return the weekday for today, but we need the weekday name for whatever is in the db.
if you are using mysql, you could do
select unix_timestamp(date) as time_stamp
from <table>
where <conditions>
then use this
$result = mysql_query(...);
$row = mysql_fetch_array($result);
print date("l", $row["time_stamp"]);
another way would be to do it all in the query:
select date_format(date, '%W') as time_stamp
from <table>
where <conditions>
then use this
$result = mysql_query(...);
$row = mysql_fetch_array($result);
print $row["time_stamp"];
if you use the unix_timestamp method, that timestamp will be available to you if you wish to do different date formats of the same date..
good luck