jsteinmann
2009-03-30 22:01:20 UTC
Current Recordset:
SELECT id, threadid, postersname, topic, message, dateposted, threadstarter,
mypicurl FROM forum WHERE threadstarter = '1' ORDER BY id DESC
repeat region displays results. Since the where clause limits to only those
that started threads, there are no duplicate topics.
Now I want to add two things to the results:
1. display the number of replies to the topic (i.e. all the records that match
the same threadid as the above recordset in the repeat region, but where
threadstarter = '0' )
I would also like to display the last person to enter a reply (i.e. threadid
matches the threadid of the recordset repeat region and is the last entry in
database).
How can I do this. I want to minimize my calls / recordsets to accomplish
this.
SELECT id, threadid, postersname, topic, message, dateposted, threadstarter,
mypicurl FROM forum WHERE threadstarter = '1' ORDER BY id DESC
repeat region displays results. Since the where clause limits to only those
that started threads, there are no duplicate topics.
Now I want to add two things to the results:
1. display the number of replies to the topic (i.e. all the records that match
the same threadid as the above recordset in the repeat region, but where
threadstarter = '0' )
I would also like to display the last person to enter a reply (i.e. threadid
matches the threadid of the recordset repeat region and is the last entry in
database).
How can I do this. I want to minimize my calls / recordsets to accomplish
this.