![]() |
If you are planning to do that in postbits, it will be fairly server intensive.
Quote:
|
Quote:
Maybe have the output in the profile. Gives another member an idea where the person posts the most. |
[sql]SELECT t.forumid
FROM post AS p LEFT JOIN thread AS t USING (threadid) WHERE p.postuserid = X[/sql] PHP Code:
|
Quote:
|
Quote:
|
Quote:
FROM post AS p LEFT JOIN thread AS t USING ( threadid ) WHERE p.postuserid =803 MySQL said: #1054 - Unknown column 'p.postuserid' in 'where clause' :confused: --------------- Added [DATE]1235016809[/DATE] at [TIME]1235016809[/TIME] --------------- Okay, I am really lost. How about if I have one forumid and one userid, how can I get the number of posts that user made in that forum? Thanks in advance. |
I think I made a mistake, postuserid is for threads. Here is the "proper" query:
[sql]SELECT COUNT(p.postid) AS count FROM post AS p LEFT JOIN thread AS t USING (threadid) WHERE p.userid = 803 AND t.forumid = X[/sql] |
Gracias!
|
All times are GMT. The time now is 07:06 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|