![]() |
Error with SQL, Help?
I have a hack that is meant to show a certain usergroups's members and it keeps giving SQL errors, first it was a table didn't exist then something else after that, I can't get it to work.
The Original SQL Query PHP Code:
Thanks in advance. |
You need to post the actual error message - "something else" isn't much use. :)
|
Ok well here is the first one that says the table doesn't exist.
Database error in vBulletin 3.6.7: Quote:
|
It should be user.usergroup = 12
|
Whoops that was the error message from after I tried editing it to get it to work,
here the error message from when Its using the original query. Quote:
|
Nothing has changed - the answer is the same ;
The WHERE statement should be user.usergroupid, not vb_user.usergroupid. |
thats the table_prefix thingy *points to query in first*
|
Yes, I know what it is, that's the point - you need to remove it from the where line, it's not needed. :)
|
Oh :o
It works now! :o Thank you! :) |
All times are GMT. The time now is 03:35 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|