<html>
<head><title>Week #2 ~ Lestat </title>
<link rel="stylesheet" type="text/css" href="/css/scriptskewl.css">
</head>
<body>
<?
// USE VARIABLES
$today=date("j/n/y");
print("The current date is: $today");
?>
<br>OR<br>
<?
// CONCANTONATED
print("The current date is: ".date("j/n/y"));
?><br>
<br>
<strong><small><font="verdana">URL OF THE DAY</font></small></strong><br>
<?
/**********************************************
Depending on the day of the week, this script
should display a different static link each day
**********************************************/
// Assign date variable to use the numeric day of the week 0-6
$today=date("w");
// Set switch with variable static url possibilites
switch($today)
{
// Sun
case "0":
$url="A search Engine: <a href=\"http://www.google.com\" target=_blank>Google</a>";
break;
// Mon
case "1":
$url="A place to buy things: <a href=\"http://www.tigerdirect.com\">Tigerdirect</a>";
break;
// Tues
case "2":
$url="A place to buy paper: <a href=\"http://bradnersmith.com\">Bradner Smith</a>";
break;
// Wed
case "3":
$url="A place to buy business computer stuff: <a href=\"http://www.cdw.com\">CDW</a>";
break;
// Thurs
case "4";
$url="Whats going on in the world of scientists: <a href=\"http://www.fas.org/main/home.jsp\">FAFSA</a>";
break;
// Fri
case "5";
$url="Check your weather: <a href=\"http://www.weather.com\">Weather Channel</a>";
break;
//Sat
case "6";
$url="See how stuff works: <a href=\"http://entertainment.howstuffworks.com\">How Stuff Works</a>";
break;
default:
}
// Print Results
print("Todays site:" . "$url" )
?>
<pre>
</pre>
<br>
<iframe src="wk2basicsrc.php" width="850" height="300"></iframe>
<br>
<a href="../index.html">BACK</a>
</body>
</html>