Results 1 to 4 of 4

Thread: Date Call

  1. #1
    Join Date
    Oct 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Date Call

    I have a php/html code that reads and displays data from a mysql database and the code is now working (http://www.girh.com/League/entire_schedule1.php). What I would like this code to do is show only toady's scheduled games (if any) and any game scheduled for the next six/seven days. I've attempted different date codes but am unable to get what I want to display. Can anyone lend me a hand?

  2. #2
    Join Date
    Sep 2006
    Location
    Eureka, California
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    kalasoft,

    In order to answer this, we would need to know the date-stamp method your database is using. Is it using traditional mysql datestamps, unix datestamps, etc.

    While functions exist to deal with the different methods, you can make it a lot easier by providing the date-stamp method for us.

  3. #3
    Join Date
    Oct 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re:

    The mysql database is using the traditional date-stamp (Year-Month-Day).

  4. #4
    Join Date
    Oct 2006
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Well you would just add an addition condition to the mysql query

    I've using something like


    $query = "SELECT * FROM table1 WHERE scheduled_date = '".date("Y-m-d")."'";

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
  •