The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
query help
I'm trying to write an SQL query but I really don't know what I'm doing
PHP Code:
take $variable and look for matches in table userfield column field66 then return all matching usernames of members with that userfield value in an array if possible. (maybe i'll end up moving this to service requests) :ermm: |
#2
|
||||
|
||||
PHP Code:
explain what you want a little more |
#3
|
||||
|
||||
This is not a table.
TABLE_PREFIX . "user.username, |
#4
|
||||
|
||||
Indeed.
..? |
#5
|
||||
|
||||
Yoiu have that in the code you posted among other things that also aren't tables.
|
#6
|
||||
|
||||
I was under the impression you have to stick the table name before the fieldname when working with multiple tables?
TABLE_PREFIX . "user.username = vb3_user.username Maybe I'm missing something obvious. |
#7
|
||||
|
||||
Nope, only on the tables.
|
#8
|
||||
|
||||
So your query should actually be:
PHP Code:
|
#9
|
||||
|
||||
that sure gets rid of alot of extra table_prefixes eh
apart from that, what does that affect? |
#10
|
||||
|
||||
You lost me, what does what affect?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|