The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
How exactly do SQL Subqueries work?
I'm trying to figure this one out... I have one query... that returns a set of rows.
Code:
$villages = $vbulletin->db->query_read(" SELECT conquest_players.*, conquest_nations.*, user.username FROM conquest_players AS conquest_players LEFT JOIN conquest_nations AS conquest_nations ON conquest_players.nationID = conquest_nations.nationID LEFT JOIN user AS user ON conquest_players.forumID = user.userid ORDER BY user.username ASC "); Code:
while ($village = $vbulletin->db->fetch_array($villages)) { $intel = $vbulletin->db->query_first(" SELECT * FROM conquest_intel WHERE playerID = ".$player[playerID]." AND villageID = ".$village[playerID]." "); eval('$villagesHTML .= "' . fetch_template('conquest_villages_bit') . '";'); } |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|