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
Comes from the server in Ajax Success here, such an array(example)

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.
0 like 0 dislike
And then there are template engines (personally, I like the handlebars) and "frameworks" type React or Vue.

JS also have tortorich. Googlemy and yea shall find.

If you

Learn Back-end programming

... watch Vue.

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
35,405 users