In message <[EMAIL PROTECTED]>, viewcharts <[EMAIL PROTECTED]>
writes
>If I put the number in the database table, how do I select the next 
>number based on the date?

If you choose the time to change the number as midnight, it would be
simpler.  If the "ChangeTime" is not midnight, then you have to check
the time as well as the date, but, anyway...


I wouldn't put it in a database.  Although I use a lot of databases, I
wouldn't in this case. 

I would write code into the page, that the page should read the text
file, which contains the date, and the number.  

If the date read is not 'today', then create a new number, then write
the new date and number to the text file.

NOW you can use and display the number, whether it was changed or not.

>> I would like my webpage to show one number each day.
>> The number will be 
>> randomly selected at a certain time of the day. Is it
>> possible to do 
>> this by php? I do not want to have to go to the
>> webpage and update it, 
>> and I want the randomly selected number to remain on
>> the webpage until 
>> the next day when a new random number will display.
>> 
>> 
>> Thanks,
>> Wes

-- 
Pete Clark

http://www.hotcosta.com
http://www.spanishholidaybookings.com




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to