I want to make a survey apps that taking the question from mysql using JSON
this is the result of json_encoded from table question
[{“id”:“5”,“pertanyaan”:“Usia”,“q1”:"<21 tahun",“q2”:“26-40 tahun”,“q3”:">55 tahun":""}]
lets say i have table_result with attributes id and answer
and i want to make a textinput that storing the answer each question(pertanyaan).
so how to show the question with the textinput and store to other table??
thank by giving about dictionaries and how to use, but if i use the dictionaries to call the json, how and where i put my textinput for storing the answer?
i try my global survey to the id number like 1, and getting bunch error empty string list
but i want to make a survey apps that having each question that have a differents sum of answer
You need to debug your blocks. Put some notifications showing the values of your variables in various places in your blocks so that you can track where and what the values of your variables are.
’
so something wrong with my json?
the error, Select list item: Attempt to get item number 1 of a list of length 0: ()
and the list cant accept argument lenght of list “not found”
pertanyaan with the data ->success print the data like Nama Responden, Alamat Lengkap, No hp etc
q1 -> ()
q2 -> ()
so q1 and q2 giving all empy even there some of data with string, its because my q1 and q2 on id 1 is empty that make other data empty too?
this is from table for json