Show Today's-Content-Only script?

Discussion in 'Scripts' started by spiritman, Jun 4, 2009.

  1. #1
    Hey Folks,

    Someone here surely knows the answer to this.

    I'm doing a friend a favor and putting a site together for him.

    He has 365 daily "meditations" for lack of better term....

    I want 1. to be able to deliver these via email, I assume most autoresponders can handle this.

    and 2. (this is where you come in) I want to be able to display this text daily. That is, I want specific content to show on each date. i.e June 4th displays June 4th content, June 5th, June 5th content...etc etc.

    He has the text ready.

    There must be a script available to do this (or even a WP plugin) but I can't seem to find it.

    If you happen to know where I can find it that would be great. Free is obviously preferred but a reasonably priced tool would be fine too.

    Thanks for your help,

    Spiritman
     
    spiritman, Jun 4, 2009 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    here u have an example with switch and cases

    
    <?php
    $today = date("d/m/Y");
    switch($today) {
    case "31/06/2009":
    print "content for 31st june 09";
    break;
    case "1/04/2009":
    print "content for 1st jully 09";
    break;
    }
    ?>
    
    PHP:
    and so on...
     
    crivion, Jun 4, 2009 IP
  3. spiritman

    spiritman Member

    Messages:
    52
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    43
    #3
    Thanks for the help.

    I'm not a coder though.

    I've can usually cut and paste and modify parameters...but I think this might be a little out of my league.

    Unless I can get something I can just cut and paste I guess I'll have to farm it out...

    Spiritman
     
    spiritman, Jun 6, 2009 IP