[snip]
Anyone have a quick fix for a part of an html page that I do not want to
display until after October 1st, and not after October 31st ?
[/snip]

You must have missed the conditionals part of the manual....

<?php // untested

$display_start = "2003-10-01";
$display_end = "2003-10-31";
if((date("Y-m-d") >= $display_start) && (date("Y-m-d") <=
$display_end)){
        print($stuff);
}
?>

Now, if you are getting the stuff out of the database you can select
according to date if you have start and end dates as columns (as would
be in most CMS databases);

SELECT paragraph 
FROM tblArticles
WHERE CURRENT_DATE() BETWEEN '2003-10-01' AND '2003-10-31'

HTH and Have a pleasant day.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to