Dynamic Specials Page on Mobile - is it possible?

rubberducky

Newbie
Joined
May 18, 2012
Messages
15
Reaction score
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.
 
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:
Back
Top