Re: [PHP] Question about time...



On 10/24/07, Daniel Brown <parasane@xxxxxxxxx> wrote:
On 10/24/07, Jason Pruim <japruim@xxxxxxxxxx> wrote:
Hi Everyone,

I am attempting to get the logic of something figured out and I
thought someone might be able to confirm what I'm thinking :)

I want to be able to display something like an image of a turkey
during the month of november from now until I'm dead. I was playing
around with mktime and it showed very different time stamps for
11/1/07 and 11/1/08 so I can't set it to compare specifically to the
timestamp.. But, would I be able to have it evaluate the string
stored in php as 11/1/07 and create a timestamp to compare todays
date to, and if it matches within the month, have it display the
turkey? and if not, have it display a different graphic?

I'm attempting to be able to make small changes to my website without
having to remember to do them or change them :)

I hope I've made enough sense that someone can point me in the right
direction :)

Thanks for looking!

--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
3251 132nd ave
Holland, MI, 49424
www.raoset.com
japruim@xxxxxxxxxx





<?
if(date("M") == "11") {
// Display turkey
}
?>

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

Give a man a fish, he'll eat for a day. Then you'll find out he was
allergic and is hospitalized. See? No good deed goes unpunished....


Sorry, that should've been a lower-case M.

<?
if(date("m") == "11") {
// Display turkey
}
?>

--
Daniel P. Brown
[office] (570-) 587-7080 Ext. 272
[mobile] (570-) 766-8107

Give a man a fish, he'll eat for a day. Then you'll find out he was
allergic and is hospitalized. See? No good deed goes unpunished....
.



Relevant Pages

  • RE: Incrementing a key value
    ... I'd use a regular autonumber column and just add the 'L' to the front when ... you need to display the key value. ... "Give someone a fish and they eat for a day; teach someone to fish and they ...
    (microsoft.public.access.tablesdbdesign)
  • Re: Auction Prices 1-31-09
    ... The majority of all games had nice cabinets with good playfields and ... Addams Family 2050 line in display ... Fish Tales $1000 ... Pinbot $600 ...
    (rec.games.pinball)
  • Re: OT: Splash the World Record Catfish, R.I.P.
    ... >Donn, oddly enough the Texas Parks and Wildlife, the folks what's in ... >display the skeleton separately. ... >'bout 40 lbs of meat from a bovine or deer but actually a fish produces ...
    (alt.support.mult-sclerosis)
  • Re: MS Office
    ... Nobody forces starving people to bring more starving mouths into the ... Let's see...I live in a barren desert, I eat flies to get by, so I'm ... ever give to professional charities after seeing what the top sharks take home. ... It was the most awesome display of human kindness I have ever felt. ...
    (microsoft.public.windows.vista.general)
  • Re: Celebrate?
    ... Now those umbrellas look good and ready to eat. ... or, as we put it in this house, "only good enough for mashing". ... would buy from that display. ...
    (uk.media.radio.archers)