![]() |
How to automate database query?
Hi all
The "Execute SQL Query" option, Is it possible to automate this? I need to execute this query once a week, every week. UPDATE rbs_banners SET m_expired=0 Thanks. |
You could make a plugin using hook cron_script_cleanup_daily and code like this:
PHP Code:
It's not perfect. For one thing if, for example, you set it up to run on Monday and for some reason the cleanup script doesn't run (like your forum is down or something), it wouldn't run until the next week. BUt it might be good enough for your purposes. |
That seems great, thank you. :)
|
All times are GMT. The time now is 07:02 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|