Scripts.FranciscoCharrua.com
HotScripts.com - Over 10 web rings.
more links...
user name
password
don't keep me logged
keep me logged for a month
keep me logged for 6 months
keep me logged for a year
Index
News
Samples
E-Mail me
Forums
Sign Up
NEXT-WEEK.PHP
This script provides the date of any upcoming week day, it's perfect for sites that announce weekly activites. It takes one argument, a number between 0 and 6, representing sunday to saturday.
see also :
calendar.js
,
php-calendar.php
,
asp-calendar.asp
agenda-calendar.php
,
agenda-calendar.asp
server-side-clock.php
,
server-side-clock.asp
next-week.php
,
next-week.asp
,
javascript-next-week.js
server-side-countdown-clock.php
,
server-side-countdown-clock.asp
countdown-clock.js
<? function next_week($target_week_day) { $date = getDate(); $day = $date["mday"]; $week_day = $date["wday"]; $month = $date["mon"]; $year = $date["year"]; //This assumes that if today is a target week day, //today's date will be used and not next week's. //To change that, just make //if($week_day <= $target_week_day) //if($week_day < $target_week_day) if($week_day <= $target_week_day) $days_left = $target_week_day - $week_day; else $days_left = 7 - ($week_day - $target_week_day); //This script works by finding out the number of days separating //the current date and the next target week day. $next_week = getDate(mktime(0, 0, 0, $month, $day + $days_left, $year)); $next_week_html = $next_week["month"] . " " . $next_week["mday"] . " , " . $next_week["year"]; return($next_week_html); } ?>
hosting with cpanel
best hosting
premium website host