HighDots Forums  

php survey

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss php survey in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
TommyG
 
Posts: n/a

Default php survey - 08-05-2004 , 01:26 PM






Hello everyone

I have just completed a survey that posts data to a mysql db using php in
dreamweaver
Now I want to create a results page that shows sums of all the answers posted
in each field...
Any details how I can put a sum of "FieldA where the answer =Y" or something
like that?
I have about 40 fields on one page so creating a recordset for each one would
be kinda big I would think... any suggestions?

Thanks millions!


Reply With Quote
  #2  
Old   
-Rb
 
Posts: n/a

Default Re: php survey - 08-06-2004 , 10:13 AM







"TommyG" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Hello everyone

I have just completed a survey that posts data to a mysql db using php in
dreamweaver
Now I want to create a results page that shows sums of all the answers
posted
in each field...
Any details how I can put a sum of "FieldA where the answer =Y" or
something
like that?
I have about 40 fields on one page so creating a recordset for each one
would
be kinda big I would think... any suggestions?

Thanks millions!

Take a look at COUNT() in the MySQL docs.

HTH

-Rb



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.