title: How to echo result in list using php
body: <p>I want to print sql result in list using php.</p>
  
  <pre><code>&lt;?php 
  $query="select name from plant ";
  $q=mysqli_query($con,$query)or die("Could Not Perform the Query");
  while ($row = $q-&gt;fetch_assoc()) {
  $hh=$row['name'];
  }
  ?&gt;
  &lt;ul id="myUL"&gt;
  &lt;li&gt;&lt;a href="#"&gt;&lt;?php echo $hh ?&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>like:-</p>
  
  <p>.Mango</p>
  
  <p>.Apple</p>
  
  <p>.Banana</p>