GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 22-Aug-2006, 11:01
forwardvision forwardvision is offline
New Member
 
Join Date: Aug 2006
Posts: 6
forwardvision is on a distinguished road

How do I add a daily "tip of the day" to my site?


I want to add a "tip of the day" to my site. However, I don't want to have to physically go in and change my site every day, as I don't have the time to do that. Therefore, I was thinking that if I was to create a text file containing the quotes / tips for each day of the month or year and store this onto my server then I could set up the page to use the quote / tip for that day.

Does anyone know how I would go about doing this please?

Thanks,

Jason
http://www.toxinfreebodycare.com
  #2  
Old 23-Aug-2006, 14:24
crystalattice's Avatar
crystalattice crystalattice is offline
Aspiring author
 
Join Date: Apr 2004
Location: Japan (again)
Posts: 1,628
crystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nicecrystalattice is just really nice

Re: How do I add a daily "tip of the day" to my site?


I'd think a simple PHP script would work. You can either write it yourself or hunt on the 'net. Try www.hotscripts.com or www.phphelp.com/article/1p4.php.
__________________
Start Programming with Python-A beginner's guide to programming and the Python language.
-------------
Common Sense v2.0-Striving to make the world a little bit smarter.
  #3  
Old 23-Aug-2006, 22:52
MrPostman MrPostman is offline
New Member
 
Join Date: Aug 2006
Posts: 5
MrPostman is on a distinguished road

Re: How do I add a daily "tip of the day" to my site?


Agreed.

What you would need to do it yourself is a database (flat file works, too) holding your quotes, a file that remembers a random number for every day, and the pages that read out that number and load the according quote.
  #4  
Old 07-Sep-2006, 10:04
m33tmn m33tmn is offline
New Member
 
Join Date: Jul 2006
Posts: 18
m33tmn is on a distinguished road

Re: How do I add a daily "tip of the day" to my site?


you could also just have a tip for each day of the week. so simply use 7 variables $1 to $7 and then add if ( idate("w") == 0 ) { echo "$1"; } and so on...

the idate("w") just returns the day of the week as a number, where 0 is sunday.
 
 

Recent GIDBlogOnce again, no time for hobbies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Types of Web Site Hosting Olga Elizarova Web Hosting Forum 3 15-Sep-2009 04:59
Technology Review Site ak406 Websites Reviewed Forum 11 06-Dec-2005 19:10
Flash Deadly Sins that can kill your web site abacomedia Web Design Forum 9 10-Jan-2005 22:13
Search Engine Positioning 101 and 201 "How To" Tips... 000 Search Engine Optimization Forum 0 29-May-2003 11:34

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 17:36.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.