How to properly display the result from the database?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
12 views
Hi all. There is a test
1) Question
Answer 1
The answer is 2
The answer is 3
2) Question 2
Answer 1
The answer is 2
The answer is 3

The answers all the time the same, the test is psychological.
Our database data is stored.
There is a table with questions
Questions I deduce here so:
@foreach($questions as $question) {{ $question->question }}@endforeach

In the database information about said user stored so
[{"question_1":"b"},{"question_2":"a"},{"question_3":"a"},{"question_4":"c"},{"question_5":"b"},{"question_6":"b"},{"question_7":"b"},{"question_8":"c"},{"question_9":"c"},{"question_10":"a"},{"question_11":"a"},{"question_12":"c"},{"question_13":"c"},{"question_14":"b"},{"question_15":"a"},{"question_16":"a"},{"question_17":"b"},{"question_18":"a"},{"question_19":"c"},{"question_20":"a"},{"question_21":"a"},{"question_22":"a"},{"question_23":"c"},{"question_24":"b"},{"question_25":"c"},{"question_26":"a"},{"question_27":"a"},{"question_28":"b"},{"question_29":"b"},{"question_30":"a"},{"question_31":"c"},{"question_32":"c"},{"question_33":"c"},{"question_34":"c"},{"question_35":"b"},{"question_36":"a"},{"question_37":"a"},{"question_38":"c"},{"question_39":"b"},{"question_40":"c"},{"question_41":"b"},{"question_42":"c"},{"question_43":"a"},{"question_44":"b"},{"question_45":"c"},{"question_46":"c"},{"question_47":"a"},{"question_48":"c"},{"question_49":"a"},{"question_50":"c"},{"question_51":"c"},{"question_52":"c"},{"question_53":"b"},{"question_54":"c"},{"question_55":"c"},{"question_56":"a"},{"question_57":"b"},{"question_58":"b"},{"question_59":"a"},{"question_60":"a"},{"question_61":"b"},{"question_62":"a"},{"question_63":"b"},{"question_64":"a"},{"question_65":"b"},{"question_66":"b"},{"question_67":"b"},{"question_68":"a"},{"question_69":"c"},{"question_70":"b"},{"question_71":"c"},{"question_72":"a"},{"question_73":"b"},{"question_74":"a"},{"question_75":"c"},{"question_76":"c"},{"question_77":"b"}]

A task like this.
There is a admin panel which displays infa
5ae5b4cb59b6a289735228.png
On the screenshot you can see that there is a link
Opening the link should be displayed as a response to a question the user
Question 1
Answer 1
Question 2
The answer is 3
etc
The access response can get here
$ids[0]->answer[0]['question_1']
If you now insert a valid for the test condition that $ids[0]->answer[0]['question_1'] = a and output a test word
I have on the page displays below each question is a word.
How to get organize?
by | 12 views

1 Answer

0 like 0 dislike
If you now insert a valid for the test condition that $ids[0]->answer[0]['question_1'] = a and output a test word
I have on the page displays below each question is a word.

That is you have going on exactly what you want? What's the problem?
by

Related questions

0 like 0 dislike
3 answers
0 like 0 dislike
2 answers
0 like 0 dislike
1 answer
0 like 0 dislike
3 answers
110,608 questions
257,186 answers
0 comments
35,405 users