Welcome, Guest
Username: Password:

TOPIC: Filling array with answerscodes

Filling array with answerscodes 5 years 5 months ago #52345

  • Rene
  • Rene's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
Hello all,

I have made some PHP code to display a graph to the user at the end of my survey. The code does some calculations on the answers(56) and makes the graph. The questions are 56 List(radio) 2 options A or B. Then A = 1 and B = 0, all in 1 group.

My calculation-code starts with this array:

$answers1 = array( 1 => 1,0,0,1,1,0,1,1,0,1,0,1,0,1,0,1,0,1,0,0,0,1,0,1,1,1,0,1,0,1,1,0,1,0,1,0,1,0,1,1,1,0,1,0,1,0,1,0,1,0,1,0,1,0,1,0);

Now my question is, what is the code to fill this array from the survey.
I have been browsing through printanswers.php and statistics_user.php but I havent been able to get it going yet.

Greetings Rene

Edit: I fixed it!
Last Edit: 5 years 5 months ago by Rene.
The administrator has disabled public write access.
Time to create page: 0.341 seconds