Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
How do I create an event based script?
Old 03-27-2011, 03:20 PM How do I create an event based script?
Average Talker

Posts: 21
Name: Mike
Trades: 0
How do I create an event based script to display an event coming up and in progress?

I would like to use a script or code that will allow it to display an upcoming sporting event e.g. "Team A vs Team B on 3 March 2011" and then when a certain date and time is reached, it may display "Team A vs Team B now playing". And then once another time point has passed, that event is no longer displayed, and another event is then displayed - "Team C vs Team D on 7 March 2011". And so on and so forth.

Is this possible under Classic ASP or Javascript? I don't know where to start...I have tried searching for examples on the net but nothing seems to match what I require. Any help?

Last edited by chrishirst; 03-27-2011 at 05:14 PM..
mercville is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-27-2011, 04:24 PM Re: How do I create an event based script?
Super Spam Talker

Posts: 880
Name: Paul W
Trades: 0
It's trivial to do it in php - either have a simple db or use file-based data, check the server time against start and end dates held on db - voila.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE
PaulW is online now
Reply With Quote
View Public Profile
 
Old 03-27-2011, 05:16 PM Re: How do I create an event based script?
Average Talker

Posts: 21
Name: Mike
Trades: 0
can u give me example new to this
mercville is offline
Reply With Quote
View Public Profile
 
Old 03-27-2011, 05:22 PM Re: How do I create an event based script?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Fairly trivial in any server side language, just be aware that time on the server will be the time in the server locale and not necessarily YOUR local time or the end users local time.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-27-2011, 05:24 PM Re: How do I create an event based script?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.devarticles.com/c/a/PHP/A...ritten-In-PHP/
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to How do I create an event based script?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21251 seconds with 12 queries