THANK YOU VERY MUCH
you guys have been replly helpfull to me
now please 1 more qustion
[SQL]$teamslist = $DB_site->query("
SELECT teams.*,user.username AS username, user.userid AS userid ,user.posts AS userposts, user.reputation AS userrep
FROM " . TABLE_PREFIX . "teams AS teams
LEFT JOIN user ON(teams.teamid = user.teamid)
WHERE teams.teamid > 1
GROUP BY teams.teamid
");[/SQL]
now i want it to take all userposts and count them togeder
is that possible ?
|