vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Mysql delete user id *help* (https://vborg.vbsupport.ru/showthread.php?t=57071)

Almax1 09-14-2003 09:53 AM

Mysql delete user id *help*
 
In Mysql i want to delete user id's @ 0 and there posts but i am unsure how to run the query

user id's @ 0 (removed members) are still being called up from some hacks :(

help needed please anyone ?

N9ne 09-14-2003 09:59 AM

I don't understand what you mean, user ids at 0? Please could you explain some more...

Almax1 09-14-2003 10:05 AM

Quote:

Originally Posted by N9ne
I don't understand what you mean, user ids at 0? Please could you explain some more...

In a recent board move some members were not transferred to the new place there user ids are now 0 i want to delete them from the mysql database as they are still being called up with some hacks installed

N9ne 09-14-2003 12:13 PM

Oh, so you want to remove all users who have userid = 0?

Code:

DELETE FROM user WHERE userid=0;
BACKUP YOUR DATABASE BEFORE DOING THIS. I won't be held responsible for things going wrong :).

Xenon 09-14-2003 12:47 PM

there won't be a single user with userid 0.
you just can delete posts from guests:

[sql]DELETE FROM post WHERE userid = 0[/sql]


All times are GMT. The time now is 08:40 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.01065 seconds
  • Memory Usage 1,714KB
  • 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
  • (5)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