PDA

View Full Version : Why doesn't this update...


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
");
?>

filburt1
04-13-2005, 03:56 AM
The query will reset everybody's post count and reputation level. Is that correct?

Spam.Diz
04-13-2005, 04:00 AM
The query will reset everybody's post count and reputation level. Is that correct?
Yes it will.. I found that it is working but the database and files were moved off old server to new server and that is why it seemed not to work. My apologies and thanks for taking the time to look at it. Now I can pu the rest of the code back. LOL.

:ninja: