
01-23-2005, 10:49 AM
|
 |
|
|
Join Date: Jan 2003
Location: London
Posts: 5,268
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by miz
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 ?
|
do a
PHP Code:
SELECT COUNT * FROM user WHERE teamid = $teamid
|