Change content according to the day

  • swanniebroo
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Dec 04, 2007
  • Posts: 64
  • Status: Offline

Post February 10th, 2009, 3:55 am

Hi.
Pretty much, I am doing this so i can be more organised for school.
What i want to do is make a webpage to set as my desktop (which i have already done), and then on Monday, it will show the subjects i have for monday, and then i could perhaps have a text file to edit so i could update the homework, but that would be a seperate section...anybody know how this could be done?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post February 10th, 2009, 3:55 am

  • tastysite
  • Proficient
  • Proficient
  • User avatar
  • Joined: Apr 09, 2008
  • Posts: 349
  • Loc: Brighouse, West Yorkshire, England
  • Status: Offline

Post February 10th, 2009, 4:11 am

yes do this:
Code: [ Select ]
<?php
$day = date('D');
if($day == "Monday"){print "You Monday subjects"
}elseif($day == "Tuesday"){print "Your Tuesday subjects"
}elseif($day == "Wednesday"){print "Your Wednesday subjects"
}elseif($day == "Thursday"){print "Your Thursday subjects"
}else{print "Your Friday subjects"};
?>
  1. <?php
  2. $day = date('D');
  3. if($day == "Monday"){print "You Monday subjects"
  4. }elseif($day == "Tuesday"){print "Your Tuesday subjects"
  5. }elseif($day == "Wednesday"){print "Your Wednesday subjects"
  6. }elseif($day == "Thursday"){print "Your Thursday subjects"
  7. }else{print "Your Friday subjects"};
  8. ?>


---
Ar hang on are you running it through a server cos if you are not it wont work!
^__^
  • joebert
  • Sledgehammer
  • Genius
  • No Avatar
  • Joined: Feb 10, 2004
  • Posts: 13455
  • Loc: Florida
  • Status: Offline

Post February 10th, 2009, 2:02 pm

Is there a reason other than just wanting to make something of your own that you don't use something like Mozilla Sunbird ?
Strong with this one, the sudo is.
  • swanniebroo
  • Beginner
  • Beginner
  • No Avatar
  • Joined: Dec 04, 2007
  • Posts: 64
  • Status: Offline

Post February 11th, 2009, 12:43 am

what is sunbird? i have never heard of it before?

EDIT: Hey, just looked at sunbird.

Problem is, this is my desktop, and a webpage so that it can integrate with my desktop.

Also, tastysite, how would i implement that code exactly...i'm fairly new to web design..where would the php get the variables?
  • Merlyn
  • Guru
  • Guru
  • User avatar
  • Joined: Dec 04, 2003
  • Posts: 1143
  • Loc: Oregon
  • Status: Offline

Post February 14th, 2009, 4:45 pm

You could always check out something like Samurize which can show you rss feeds, text files for to do lists, system info, etc. all on your desktop.

I use another similar program called Rainmeter and love it. Use it for my to do lists all the time.
"Man cannot discover new oceans unless he has the courage to lose sight of the shore" -Andre Gide

Post Information

  • Total Posts in this topic: 5 posts
  • Users browsing this forum: ScottG and 129 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.