The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#7
|
|||
|
|||
![]() Quote:
The WHERE clause you only add once on the end. I added a $selectedpick field as an example of how to select all info for just 1 draft. This will first (with the WHERE clause) select all rows from your primary table (draftpicks) with pickid = $selectedpick, then it will find all corresponding rows from both the teams and the players tables, based on the selection following the "ON" in their respective LEFT JOIN clauses. You query would look like this: [sql]SELECT draftpicks.*, teams.teamname, players.playername FROM lmd_draftpicks AS draftpicks LEFT JOIN lmd_teams AS teams ON (teams.teamid = draftpicks.teamid) LEFT JOIN lmd_players AS players on (players.playerid = draftpicks.playerid) WHERE draftpicks.pickid = $selectedpick[/sql] |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|