Random Quote + Time Variable
Posted: Sat Feb 22, 2003 4:45 pm
Hi guys! I'm new to PHP but i'm writing this script. This is what I "WANT" it to do >
I want to have it execute 1 thing in array 1 randomly if the hour of the day is let's say X.
And if that time of day is not X, then I want it to execute a quote from another array, let's say array 2.
------------------------------------------------------------------------------
2 author's of the quote system, and basically every other hour of the day I want it to switch between the arrays. Each array is just a collection of quotes by these 2 authors. Okay well it doesn't work... So i've included it here > to go look at it's a txt doc >
http://www.trickstutorials.com/randomquote.txt
Just tell me what's wrong with it, I think it's simple I'm just not picking up on it guys. Thanks in advance! I'd really appreciate some help on this guys! PHP ROX!!
I want to have it execute 1 thing in array 1 randomly if the hour of the day is let's say X.
And if that time of day is not X, then I want it to execute a quote from another array, let's say array 2.
------------------------------------------------------------------------------
2 author's of the quote system, and basically every other hour of the day I want it to switch between the arrays. Each array is just a collection of quotes by these 2 authors. Okay well it doesn't work... So i've included it here > to go look at it's a txt doc >
http://www.trickstutorials.com/randomquote.txt
Just tell me what's wrong with it, I think it's simple I'm just not picking up on it guys. Thanks in advance! I'd really appreciate some help on this guys! PHP ROX!!