Automatic Scheduling

This is a discussion on "Automatic Scheduling" within the PHP Forum section. This forum, and the thread "Automatic Scheduling are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Mar 31st, 2008, 16:23
New Member
Join Date: Mar 2008
Location: England
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow Automatic Scheduling

Hey guys,
Just wondering how I would go about scheduling events in MySQL/PHP so that an event (say, every weekday or every wednesday) can be retrieved from a MySQL database without having to manually input every entry.

Is there a schedule function, or anything?

Many thanks.
Jack
Reply With Quote

  #2 (permalink)  
Old Mar 31st, 2008, 21:00
CloudedVision's Avatar
Nerdy Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 942
Blog Entries: 8
Thanks: 2
Thanked 22 Times in 22 Posts
Send a message via AIM to CloudedVision Send a message via MSN to CloudedVision Send a message via Skype™ to CloudedVision
Re: Automatic Scheduling

Quote:
Originally Posted by Jackus View Post
Hey guys,
Just wondering how I would go about scheduling events in MySQL/PHP so that an event (say, every weekday or every wednesday) can be retrieved from a MySQL database without having to manually input every entry.
Why would you have to manually input each event to retrieve an event?
__________________
echo "Take it easy, ".$CloudedVision;
.links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; }
<quote>&quot;I think it's wrong that only one company makes the game Monopoly&quot; - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
Reply With Quote
  #3 (permalink)  
Old Apr 1st, 2008, 00:42
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,770
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: Automatic Scheduling

To do this you would have to setup a cron job that will visit the page that executes the query.
There may be a better way to set this up though, what is the purpose of this?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #4 (permalink)  
Old Apr 1st, 2008, 07:22
New Member
Join Date: Mar 2008
Location: England
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Automatic Scheduling

I see...
Well, I am trying to code a tournament site, where they can see what tournaments are being played.
For this, I need to input the tournaments into the database, but some are recurring - and I really dont want to have to input manually every day/week etc.

So, what would I do with teh MySQL database to know that the event is recurring every wednesday, for example? How would the cron job script work?
Reply With Quote
  #5 (permalink)  
Old Apr 5th, 2008, 01:59
CloudedVision's Avatar
Nerdy Moderator
Join Date: Feb 2008
Location: In My Own Little World
Age: 14
Posts: 942
Blog Entries: 8
Thanks: 2
Thanked 22 Times in 22 Posts
Send a message via AIM to CloudedVision Send a message via MSN to CloudedVision Send a message via Skype™ to CloudedVision
Re: Automatic Scheduling

Most hosts have a cron job option on their CP. Just have it run a PHP script that inserts the tournament.
__________________
echo "Take it easy, ".$CloudedVision;
.links { site: other-road-design; blog: only-nerds-allowed; project: resource-fish; organization: ARMIES6; }
<quote>&quot;I think it's wrong that only one company makes the game Monopoly&quot; - <name>Steven Wright</name></quote>
Last Blog Entry: More Cheat Sheets (Jul 12th, 2008)
Reply With Quote
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Needed ASAP - PHP/MySql Point-of-Sale/Scheduling system Donny Bahama Job Opportunities 0 Oct 5th, 2007 16:08
Appointment Scheduling Software? ugadawgvi Starting Out 6 Jun 19th, 2007 22:09
Automatic calculations josephman1988 JavaScript Forum 7 Dec 22nd, 2006 17:44
Automatic Backups Gee Bee Databases 9 Jan 22nd, 2006 02:48
Automatic Sending accessman Databases 0 Sep 25th, 2005 17:25


All times are GMT. The time now is 20:53.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43