• Welcome to DNForum.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars
    If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the oldest global domain name community on the internet and continues to grow every day. There are over 45,000 domainers on DNForum doing everything from buying domains, selling domains, using our free in-house built tools, learning about domains and discussing domains. Take a minute and Register.

Wanted: Service PHP guys, please summit quote

Status
Not open for further replies.

chidoug

New Member
Legacy Platinum Member
Joined
Jan 31, 2005
Messages
137
Reaction score
1
I have a web site, and on this web site I would like for some of the data of a page to change according to the day of the week. (Monday, Tuesday, etc..)

The idea is that the site is to offer information about daily specials. So I was thinking that php along with a database would work best.

There is a special for each day of the week, there also might be additional events and such

Please contact me to discuss further details.
 
Mate..
If you have say 7 html files which contain the data for each day of the week.. then ill do it for free. Any more complex, and I wont simply because im lazy and stick to my own projects.. just pointing out it isnt hard, can be done in about 5 minutes, so dont go forking out loads of cash :)
 
If you pay, you pay. If you don't, you don't.

Here is the code. Feel free to edit the image tags to however you see fit i.e.) width, height, alt tags, or even other content.


PHP:
<?php

$sun_image='<img src="sunday.gif" />';
$mon_image='<img src="monday.gif" />';
$tues_image='<img src="tuesday.gif" />';
$wed_image='<img src="wednesday.gif" />';
$thur_image='<img src="thursday.gif" />';
$fri_image='<img src="friday.gif" />';
$sat_image='<img src="saturday.gif" />';

$get_day=date("l");

if($get_day=="Sunday") echo $sun_image;
elseif($get_day=="Monday") echo $mon_image;
elseif($get_day=="Tuesday") echo $tues_image;
elseif($get_day=="Wednesday") echo $wed_image;
elseif($get_day=="Thursday") echo $thur_image;
elseif($get_day=="Friday") echo $fri_image;
elseif($get_day=="Saturday") echo $sat_image;

?>
 
Status
Not open for further replies.
Back
Top Bottom