Quote:
Originally Posted by Cryo
This should work for the CRON method...
PHP Code:
$cthreads_SQL = "UPDATE
". TABLE_PREFIX ."thread
SET
open = 0
WHERE
replycount > 34
AND open = 1";
$cthreads = mysql_query($cthreads_SQL);
If you're not including the global file you'll need to replace "TABLE_PREFIX" with your table prefix.
|
This is my first time implementing a cron
so basically i create a new php file with the above code in it... then go to scheduled tasks in adminCP and link to it?