![]() |
How to schedule a sql query
Hi im wanting to run a shedule task to reset the counts in a table my database to zero
I just need a but of help for what code to use in the php cron file the query i am using is UPDATE user SET mydbtabename = '0' obviously replacing mydbtabename with the real name. how do i put it into code eg. $vbulletin->db->query_write ??????????????????????? |
I think you want this:
Code:
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET mydbtabename = '0'"); |
thankyou
|
All times are GMT. The time now is 03:02 PM. |
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:
|