How to make too much of a JSON object similarity php Foreca with layout?


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
17 views
Comes from the server in Ajax Success here, such an array(example)
5aeaa06505ca2057599886.jpeg

I now need to make it in the layout. As I want will not work. So he invented the second option. Simply display in a table BS. Started doing the layout of the table, but there was the question of how to loop the lines of this miracle of the array? In PHP would just be foric and I'd already worked with podsmatrivanie. But js how ? Plus how to sew in layout is sent.

success: function (res) { bent var = res[0].length; $('#orders').html( 'Total orders:'+ bent + ''+ ''+ ''+ ''+ 'Order No.'+ 'Office'+ 'The name of the service'+ 'The name of the Customer'+ ''+ ''+ '' ); console.log(res); },
by | 17 views

2 Answers

0 like 0 dislike
If you are asking us to pay you the finished code, here tells a lot about loops in JS, and here about iterating over arrays.
by
0 like 0 dislike
And then there are template engines (personally, I like the handlebars) and "frameworks" type React or Vue.

PS
JS also have tortorich. Googlemy and yea shall find.

ZY2
If you

Learn Back-end programming

... watch Vue.
by

Related questions

0 like 0 dislike
2 answers
0 like 0 dislike
4 answers
asked Mar 22, 2019 by Nepofigist
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
35,405 users