The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 ??????????????????????? |
#2
|
|||
|
|||
I think you want this:
Code:
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "user SET mydbtabename = '0'"); |
#3
|
|||
|
|||
thankyou
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|