Originally Posted by rowf33
2) The CDATA designations only go with XHTML but you should never use document.write with XHTML.
3) You should not be using TABLES for layout.
define ('DATE_FORMAT', 'Y-m-d');
foreach (array (3, 7, 30, 90) as $days) echo "<div>$days days: ", date (DATE_FORMAT, strtotime ("+ $days days")), "</div>\n";