Navigation :

Home
Source code
Tutorials
RSS feeds
Articles
Wordpress plugins
Blog
Books
Software
Downloads
Hosting
manuals
Script directory
Training
Our Links




Site Sponsors :

Bookmark :

Links :

programmershelp
dvd information
software directory

Downloads :

Misc :

Webmaster Resources
Only PHP
ScriptSearch.com
Scripts.com - Get the best scripts NOW!
AndreaPHP Programming

Valid XHTML 1.0 Transitional


Valid CSS!


Random daily background colour

This example will display a different background color for each day of the week

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<?php
$today = date("w");
$bgcolor = array(
"red", "blue", "green", "yellow",
"purple", "brown", "orange"
);
?>
<body bgcolor="<?print("$bgcolor[$today]");?>">

</body>
</html>