Spam.Diz
04-13-2005, 03:41 AM
I have a simple script I am testing and it says ok but when I go to my phpadmin browse it shows no changes. I am running this as a scheduled task from the cron folder. I have also tried without the check for null and still said ok. All help appreciated. Thanks.
<?php
error_reporting(E_ALL & ~E_NOTICE);
if ($DB_site == NULL)
{
exit;
}
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user
posts = 0, reputation = 0
");
?>
<?php
error_reporting(E_ALL & ~E_NOTICE);
if ($DB_site == NULL)
{
exit;
}
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user
posts = 0, reputation = 0
");
?>