[thelist] php date

Kris Hedstrom webdev at komputerart.com
Wed Dec 26 12:07:54 CST 2001


hmm, I'm not totally sure what you want but if you're simply looking to get
today's date from the server you can use the date() function.
See http://www.php.net/manual/en/function.date.php

hope that helps

- kris
----- Original Message -----
From: John Corry <john at neoncowboy.com>
To: <thelist at lists.evolt.org>
Sent: Wednesday, December 26, 2001 9:50 AM
Subject: [thelist] php date


> http://www.sugarbeachresort.net/index.php?page=rates
>
> This is really a question of 'logical approach' more than anything.
>
> At the URL above I have a table for condo rates. I'm about to build a db
> driven site that has this information for about 10-20 properties and need
to
> automate part of it. I've got the actual rates coming from the db already,
> that's a given. It's the date ranges that has me stumped because I don't
> want to store that value, I want to generate it based on the current date.
>
> The 'high season' and 'low season' dates change every year. I need to
> automate that change.
>
> Hm, if this it too complicated though I guess it would be fine and easy
> enough to just put the dates in an include and use that file for all of
the
> sites...but, if there's some great PHP date magic one of you could
enlighten
> me to, that'd be GREAT!






More information about the thelist mailing list