Thankyou!
- I have some questions in response to your prompt response
what table should the field 'totalscore 'belong to and what properties should it have?-
SELECT SUM(b.score) AS totalscore
if I want to refer to email/qualityadmin_id as a variable how could I express that in the query?
in the qualityadmin_dtl table is the field 'type' refering to the question type in this case
type_registered
type_charity
as well as other checkbox fields such as income_under5k etc etc
if so does this mean I need to migrate these checkbox fields from qualityadmin table to the qualityadmin_dtl table so just fields like email, contact are in qualityadmin and fields type_XXX income_YYYY (checkbox responses) are in qualityadmin_dtl?
i.e
db structure for qualityadmin_dtl
qualityadmin_id INT not null (no auto_increment)
type_registered (value will be from checkbox response)
type_charity (value will be from checkbox response)
income_xxx (value will be from checkbox response)
income_yyy (value will be from checkbox response)
funding_zzzz
score
how is the INSERT query handled for the qualityadmin_dtl table??
and.... is the naming I used for checkboxes correct? i.e
<input name="score[type_registered_charity]" type="checkbox" value="5" />
or should it be..
<input name="type_registered_charity" type="checkbox" value="5" />
sorry for all the questions!!