1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Dynamic Specials Page on Mobile - is it possible?

Discussion in 'Mobile Marketing' started by rubberducky, Dec 10, 2012.

  1. rubberducky

    rubberducky Newbie

    Joined:
    May 18, 2012
    Messages:
    15
    Likes Received:
    2
    Hey guys,

    I've been doing some research and am looking to expand into mobile websites. I currently know the basics and have a few clients I could pitch the idea to once I master it and feel comfortable offering it to them. I do, however, have one question that came up that I haven't had much luck searching for - is there anyway to make a mobile site dynamic with offerings/specials? Specifically I am thinking of a business that has different specials every day i.e. 2 for 1 rail drinks on Monday, $1 shots on Tuesday, etc. Would there be any way to have the website automatically update based on the day of the week and auto-populate the "specials" page with only those that are available today and maintain the integrity and simplicity required by a mobile site?

    If anyone has any ideas or feedback please let me know!

    Thank you.
     
  2. nesterdwarf

    nesterdwarf Regular Member

    Joined:
    May 30, 2008
    Messages:
    276
    Likes Received:
    539
    Location:
    State of Misery...er, Missouri...
    Pretty straight forward -

    Use PHP to detect day of the week - http://php.net/manual/en/function.date.php and then have an if/then for loading of special for specified day...

    Code:
    
    <?php
    
    $date = date("l");
    
    if ($date=="Sunday")
    {
    	echo "Sunday Special";
    }
    else if ($date=="Monday")
    {
    	echo "Monday Special";
    }
     
    
    ?>
    
    
    HTH

    ND
     
    Last edited: Dec 10, 2012
  3. VastheBo$$

    VastheBo$$ Junior Member

    Joined:
    Oct 17, 2012
    Messages:
    153
    Likes Received:
    18
    Location:
    A growing Southern City
    OP pm me please. It's about the mobile websites