calculation

Category: How To

shahkash
Asked:
2013-06-23 3:54 am EST

Hits: 580
hi
how are you?(sorry ,about my english is n't very good)
I want to explique what I want to do exactly
when the student select one the option (never ,almost always, sometimes or rarely ) for all questions in a page then I will sum the answer for each question for ex:never = 0
rarly = 1
sometimes = 2
almost =3
always = 4

answer of q1 +answer q2 +answer q3 /( 3) number of questions
=1+0+3/3
=1
then I'll sent this Result to a report ,it will be some guidances to the students
how i do this by drupal , must I enter snippet php in drupal ???

thank you for your time

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

Scott
Staff
17,074 Points
2013-06-24 9:28 am EST
Hello shahkash,

While I would think that you should be able to us a snippet, I have not seen the code you have. You will want to try using it via snippet as a test. Drupal has set out some guidelines for using php snippets in your website, follow those and you will be able to find out if your code will work there.

Best Regards,
Scott M

You must login before you can post a comment about this answer.

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!