TECK
04-04-2002, 01:20 AM
can you help me understand the mechanism of this query?$posts=$DB_site->query("
SELECT
post.*,post.username AS postusername
FROM post
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
WHERE $postids
ORDER BY dateline $postorder
");why post.*,post.username and not only * ?
why is it present the user. part?
what is the difference between user.userid and post.userid? why i see all the time this kind of code structure (user.userid) in vB?
SELECT
post.*,post.username AS postusername
FROM post
LEFT JOIN user ON user.userid=post.userid
LEFT JOIN userfield ON userfield.userid=user.userid
WHERE $postids
ORDER BY dateline $postorder
");why post.*,post.username and not only * ?
why is it present the user. part?
what is the difference between user.userid and post.userid? why i see all the time this kind of code structure (user.userid) in vB?