Welcome Guest, Not a member yet? Register   Sign In
Profilling my application help
#3

[eluser]kaejiavo[/eluser]
Hi,
of course it can be done another way, like
Code:
SELECT *, (SELECT COUNT(*) FROM `comments` WHERE ...) as commentCount FROM posts ...
this depends on your database structure, just for you to get the idea.

Marco


Messages In This Thread
Profilling my application help - by El Forum - 09-08-2010, 11:01 AM
Profilling my application help - by El Forum - 09-08-2010, 11:58 AM
Profilling my application help - by El Forum - 09-08-2010, 02:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB