The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Ok, I have a table that has a sid and a tid. I want to pull the names from my user table for each but only if sid isn't 0. this is what i have so far.
Code:
$get_points = $DB_site->query("
SELECT h.id, h.sid, h.house, h.date, h.points, h.comments, u.username as tid_name
FROM housepoints h, 1user u
WHERE h.tid = u.userid
AND h.points != 0
ORDER BY h.date
");
|
|
#2
|
|||
|
|||
|
PHP Code:
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|