Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created a following html table in threads.php



Posted by:  At:         On:                   Topic Name:   Replies:

myname12308:51:51 AM    11th September 2013   topic-2          0
myname00108:51:10 AM    11th September 2013   topic-1          0

Problem is suppose i have one reply in topic-2. Now if i try to display the total number of replies correspond to topic-2, it is just
display it like this-


Posted by:  At:         On:                  Topic Name:   Replies:

pankaj645   08:51:51 AM 11th September 2013   topic-2      1
pankaj645   08:51:10 AM 11th September 2013   topic-1      1

As you can see it displaying total number correspond to topic-1 too.
help plz...

[edit]Urgency deleted, Code block added - OriginalGriff[/edit]
Posted
Updated 15-Sep-13 3:44am
v2
Comments
OriginalGriff 15-Sep-13 9:44am    
Urgency deleted: It may be urgent to you, but it isn't to us. All that your stressing the urgency does is to make us think you have left it too late, and want us to do it for you. This annoys some people, and can slow a response.
Prasad Khandekar 15-Sep-13 15:21pm    
Why not post the SQL you are using for retrieving the data. Perhaps your SQL does not have the WHERE clause.
Pankaj Mahor 15-Sep-13 15:51pm    
Yes, i m not using where clause because i cant find a way to identify topic.

1 solution

I suggest the answer to you question can be found here:   [Answer]


 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900