The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#4
|
|||
|
|||
![]()
[sql] SELECT contestv.ID, contestv.Contest, contestv.Author, contestv.Location, contestv.Date, user.*
FROM " . TABLE_PREFIX ."contestview AS contestv LEFT JOIN " . TABLE_PREFIX ."user AS user ON(user.username = contestv.Author) WHERE contestv.ID = " . intval($contestID) . " [/sql] That is the gist of a LEFT JOIN... Some other things: You should really use userid if you are currently using username...it is easier to index and better for normalization. And column name are simpler to remember if all are lowercase IMO. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|