vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Why doesn't this update... (https://vborg.vbsupport.ru/showthread.php?t=79850)

Spam.Diz 04-13-2005 02:41 AM

Why doesn't this update...
 
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.
Code:

<?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 02:56 AM

The query will reset everybody's post count and reputation level. Is that correct?

Spam.Diz 04-13-2005 03:00 AM

Quote:

Originally Posted by filburt1
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:


All times are GMT. The time now is 06:09 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01359 seconds
  • Memory Usage 1,711KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete