Welcome to Welcome to DNF.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 largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 5 of 5
  1. #1
    Gold Lifetime Member

    Join Date
    Jan 2005
    Location
    Chicago, IL
    Posts
    164
    DNF$
    808
    Bank
    0
    Total DNF$
    808
    Donate  

    PHP guys, please summit quote

    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.

  2. #2
    DNF Addict
    jdk's Avatar
    Join Date
    Jul 2004
    Location
    Florida
    Posts
    7,082
    Country

    United States
    DNF$
    1,169
    Bank
    0
    Total DNF$
    1,169
    Donate  
    PM sent

  3. #3
    Gremlin
    GUA's Avatar
    Join Date
    Aug 2006
    Location
    UK
    Posts
    1,571
    Country

    UK
    DNF$
    7,787
    Bank
    0
    Total DNF$
    7,787
    Donate  
    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
    Read my blog, use my domain tools (Domain Portfolio Manger, Whois History, Domainer Directory and More) http://GUA.com

  4. #4
    DNF Addict
    jdk's Avatar
    Join Date
    Jul 2004
    Location
    Florida
    Posts
    7,082
    Country

    United States
    DNF$
    1,169
    Bank
    0
    Total DNF$
    1,169
    Donate  
    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 Code:
    <?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;

    ?>

  5. #5
    Those Damn Hippies
    Justin Hulsey's Avatar
    Join Date
    Apr 2006
    Location
    Atlanta
    Posts
    887
    DNF$
    4,760
    Bank
    0
    Total DNF$
    4,760
    Donate  
    Doug is the man!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Domain name forum recommended by Domaining.com