Welcome Guest, Not a member yet? Register   Sign In
noob: trying to build on "blog tutorial"
#4

[eluser]cirox![/eluser]
I'm still not getting it.

$query is my original query that returns the blog entries. (table `entries`)

My understanding is that I need to run a separate query that will return the number of comments for a particular $entry_id. (different table `comments`)

But because the posts are extracted in the foreach loop inside the view, that's the only place I can see fit to run the query. (i.e. that's where I will be able to pass the entryid of the current $row as a parameter to the second query).


Messages In This Thread
noob: trying to build on "blog tutorial" - by El Forum - 05-27-2008, 12:05 PM
noob: trying to build on "blog tutorial" - by El Forum - 05-27-2008, 12:23 PM
noob: trying to build on "blog tutorial" - by El Forum - 05-27-2008, 12:43 PM
noob: trying to build on "blog tutorial" - by El Forum - 05-27-2008, 12:46 PM
noob: trying to build on "blog tutorial" - by El Forum - 05-27-2008, 01:17 PM
noob: trying to build on "blog tutorial" - by El Forum - 05-27-2008, 01:20 PM
noob: trying to build on "blog tutorial" - by El Forum - 05-27-2008, 01:30 PM
noob: trying to build on "blog tutorial" - by El Forum - 05-27-2008, 01:47 PM
noob: trying to build on "blog tutorial" - by El Forum - 05-27-2008, 01:53 PM
noob: trying to build on "blog tutorial" - by El Forum - 05-27-2008, 01:59 PM
noob: trying to build on "blog tutorial" - by El Forum - 05-27-2008, 04:10 PM
noob: trying to build on "blog tutorial" - by El Forum - 05-28-2008, 03:25 AM
noob: trying to build on "blog tutorial" - by El Forum - 05-29-2008, 03:27 AM
noob: trying to build on "blog tutorial" - by El Forum - 05-29-2008, 09:24 PM
noob: trying to build on "blog tutorial" - by El Forum - 07-23-2008, 04:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB