|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
scheduling sql
After reading the feature on the devshed home page, I thought I'd try to run an update using current_date() as follows:
UPDATE tablename SET fid="16" WHERE closedate < CURRENT_DATE() AND fid="6" which worked well and made me wonder: is there a way to schedule mysql statements via cron? I would think it would have to be incorporated into a php file first to make the DB connection? Last edited by lottos : July 8th, 2003 at 03:58 AM. |
|
#2
|
||||
|
||||
|
Yes that is right. For info about scheduling PHP scripts have a look at the FAQ thread at the top of the forums. This has been asked many times
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > update sql issue |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|