0

In my case i have a mysql database with some content from a page. I have function on a page to add more <li> to the database, basically it just add 1 to the number in database.

On another page i would like to display the list, how do i add the same number of <li>as the number of a variable made by the php?

var number_of_items = 6; // Printet by the php

$('.list_container').append('<li></li>'); // 6 times

I then want to append 6 times or what wver the number is.

How do i do this?

Legarndary
  • 957
  • 2
  • 16
  • 37