CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Custom report count

Print topic Send  topic

Author Message
Cleopatra

Posts: 73
Posted: 03/29/2010, 6:32 AM

Hey everyone,

I'm trying to build a report based on 3 tables: users, questions, answers.
How do you show the username with the number of answers and the question it belongs to on one row.The function count is used to count the answers, but I get all the users, even the ones who haven't recieved ansers, with the same values as the others. I've tried it with report builder, but don't know exactly what to group together.
Any ideas anyone?

_________________
php newbie
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 03/29/2010, 11:06 AM

Cleopatra,
We need more information. Could you please give us your table layouts and any queries that you have created. Also, what version of MySQL are you using?
View profile  Send private message
Waspman

Posts: 948
Posted: 04/03/2010, 7:48 AM

I'd store the answer count in the db?
_________________
http://www.waspmedia.co.uk
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.