473,394 Members | 1,932 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Creating a Blog Engine For Someone - CountOfReplies Question

So I'm creating a blog engine for someone and am curious how to go about
creating the count (if any) of the comments for a particular post.
Underneath each post the user will have name of the poster, date, time,
and an option for replying (commenting). I would like to create a count
of replies so that it is displayed. I have a dbBlog (Access) and a table
for the entries and a table for comments. They are tied together with
primary key being id. I understand the concept of doing a rowcount for a
specific id but not for all of the posts. How could I go about doing a
count while binding the entries to the datalist?

---
"Our enemies are innovative and resourceful, and so are we. They never
stop thinking of ways to harm our country and our people, and neither do
we." President George W. Bush

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #1
2 1059
Select dbBlog.*, Count(dbComments.*) as theCount from dbBlog join dbComments
on dbBlog.blogID = dbComments.blogID.....

you get the idea

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com

"Will Chamberlain" wrote:
So I'm creating a blog engine for someone and am curious how to go about
creating the count (if any) of the comments for a particular post.
Underneath each post the user will have name of the poster, date, time,
and an option for replying (commenting). I would like to create a count
of replies so that it is displayed. I have a dbBlog (Access) and a table
for the entries and a table for comments. They are tied together with
primary key being id. I understand the concept of doing a rowcount for a
specific id but not for all of the posts. How could I go about doing a
count while binding the entries to the datalist?

---
"Our enemies are innovative and resourceful, and so are we. They never
stop thinking of ways to harm our country and our people, and neither do
we." President George W. Bush

*** Sent via Developersdex http://www.developersdex.com ***

Nov 19 '05 #2
Thanks Curt. I'll be able to try this in about half an hour but was
wondering if the output would look similar to:

ID | TOPIC | MESSAGE | ReplyCount

1 | Test Topic #1 | message #1 | 3
2 | Test Topic #2 | message #2 | 0
3 | Test Topic #3 | message #3 | 8

Thanks again for your feedback.

---
"Our enemies are innovative and resourceful, and so are we. They never
stop thinking of ways to harm our country and our people, and neither do
we." President George W. Bush

*** Sent via Developersdex http://www.developersdex.com ***
Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: John | last post by:
Greetings, all, Several days after adding personalized URLs to my "amazing" collection of "God Loves (yourname)" mazes, it occurred to me that if someone were to create an offcolor term, then...
7
by: freako9699 | last post by:
I would like to create a blog script, with a mysql back-end, a basic admin panel then can just add/edit posts and delete comments. no user auth required. how do i go about doing that, i no how to...
13
by: jkimbler | last post by:
As part of our QA of hardware and firmware for the company I work for, we need to automate some testing of devices and firmware. Since not everybody here knows C#, I'm looking to create a new...
2
by: Royt | last post by:
Hi, I'm a newbie to Python, but I think it won't be too hard to learn. A few days ago I registered Google App Engine, it only support Python 2.5. I want to set my blog on it soon. But it's not easy...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.