title: How to fill HTML list using data from a MySQL database?
body: <p>I have an html webpage, and it contains a unordered list .So i want to fill this list using items that are stored in a MySQL database, an example item is provided to be clear.</p>
  
  <pre><code>&lt;ul class="content"&gt;
      &lt;li class="class1"&gt;
          &lt;p id="id1"&gt;paragraph1&lt;/p&gt;
          &lt;div class="class1sub"&gt;
              &lt;p&gt;paragraph1sub&lt;/p&gt;
          &lt;/div&gt;
      &lt;/li&gt;
  </code></pre>
  
  <p>So i want to retrieve the whole list items from the database and display it on the webpage. The problem is that each list item is stored in the database besides its CSS classes and IDs to be styled. Here is an example of a couple of items:</p>
  
  <blockquote>
    <p>liclass   -   id -    paragraph1 -    divclass -  paragraph2 </p>
  </blockquote>
  
  <p>So I'm thinking of maybe using JavaScript/PHP and MySQL ... but no starting code on my mind...any help ?</p>