Ryan's District Boards
February 08, 2010, 11:45:55 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Other sites in our network:
You are not allowed to view links.
Register or Login and You are not allowed to view links.
Register or Login (new) << free mp3 download   and many more sites
 
   Home   Help Search Calendar Shop Login Register  
Pages: [1]   Go Down
  Send this topic  |  Print  
Author Topic: RD Week(end) message 1.3  (Read 9007 times)
0 Members and 3 Guests are viewing this topic.
staff
Administrator
Hero Member
*****

Reputation: 18303
Offline Offline

Posts: 10189
104.10 RD$

View Inventory
Send Money to staff

Ryan's District


View Profile
« on: July 25, 2006, 04:36:26 PM »

Message depending on the day of the week
Basicly is made to show visitors a message on friday introducing the weekend and in the days of the week end telling them to enjoy there day
You may add more ifs as much as u need

Code:
<html>
<body>

<?php
/*Please leave this credit or make a link for http://ryansdistrict.com on the page which you want to display the code
 This code is created by Ryan website : http://ryansdistrict.com */
$x date("D");

if(
$x =="Fri") echo " Have a nice week end";
if(
$x =="Sat") echo " Enjoy your weekend";
if(
$x =="Sun") echo " Enjoy your weekend";
else echo 
"Today is ".$x." We hope you have great week";

 

?>


</body>
</html>
« Last Edit: January 19, 2007, 03:23:40 PM by Ryan » Logged
Ryan's District Boards
« on: July 25, 2006, 04:36:26 PM »

 Logged
Pages: [1]   Go Up
  Send this topic  |  Print  

 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.075 seconds with 28 queries.