Why isn't this PHP/XHTML working?

Radicular

New member
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<?php

$day = 1;

$day_names = array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
echo "<table border= "2"><tr><td><b>" $day_names[0] "</td>" ;

?>
</html>
I'm basically trying to put all the Days of the week in a table....and then I'll do the days of the week separately. But I cant even get the formatting right for this! I want it to be like "Monday" in a single row and column of a table, and then all the other days of the week like that as well. Then I'll do the each day of that month the same way too...
 
Back
Top