vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Unable to get member's info via my sql (https://vborg.vbsupport.ru/showthread.php?t=228683)

hipgirl 11-23-2009 03:42 PM

Unable to get member's info via my sql
 
Hi,

I'm trying to get the mailing list by running the script below:

SELECT
userid,
username,
email,
joindate
FROM
user
WHERE
(options &16)
and usergroupid<>8
and userid > 22481

I worked fine until recently. the script only returns 81 records but the newest member id is 24790.

I checked the table "user" and new records are not saved there.

Please let me know which table I need to use.

Thanks.

Michelle

Lynne 11-23-2009 04:33 PM

Quote:

I checked the table "user" and new records are not saved there.
What does this mean? Are you saying that new users are not getting a new record in that table?

hipgirl 11-23-2009 05:23 PM

Quote:

Originally Posted by Lynne (Post 1919600)
What does this mean? Are you saying that new users are not getting a new record in that table?

Right. I ran the script below and the result is 22574 (which was created in Sep 2009). But after log in forum admin and search by join date, the max user ID is 26033 which was created today.

SELECT max( `userid` )
FROM `user`

max(`userid`)
22574


Thanks.

Michelle

Lynne 11-23-2009 05:48 PM

Have you taken a look at the table in the database? That just doesn't make sense.

hipgirl 11-23-2009 06:20 PM

Yes I did. I browsed the records in database, same as the query result.

I can general the correct mailing list from forum admin but the only field available is email address, there're no first name, last name available.

Thanks.

Michelle

--------------- Added [DATE]1259008187[/DATE] at [TIME]1259008187[/TIME] ---------------

Thank you for your time. The problem found.

I wasn't querying the correct database. I cloned a database when migrating to a new sever and I was still querying the old database.

Thanks.

Michelle


All times are GMT. The time now is 03:56 PM.

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.01673 seconds
  • Memory Usage 1,716KB
  • 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
  • (2)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