title: How to add html tags in a php
body: <p>I'm new to php. Does not know how to use with expressions.
  Here is a php code from search file of my site.
  I want add html tags such as href, div, li, ul, etc. How could i do it?</p>
  
  <pre><code>if(mysqli_num_rows($results) &gt;= 1)
  {
      $output = "";
      while($row = mysqli_fetch_array($results))
      {
          $output .= "Size: " . $row['fh_Vsize']. "&lt;br /&gt;";
          $output .= "Icon: &lt;img src=" . $path .$row['fh_Sicon']. " alt=&gt;&lt;br /&gt;";
          $output .= "File ID: " . str_replace("_"," ",$row['fh_Sid']) . ""; $nbsp; $nbsp; $output .= "" . $row['fh_Vcaption'] . "&lt;br /&gt;";
          $output .= "Description: " . substr(strip_tags($row['fh_Sdescription']),0,150) . "&lt;br /&gt;";
          $output .= "Download: &lt;a href=download_" . $row['fh_Sid'] . "/&gt;Download&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;";
  
  
      }
      echo  $output;
  }
  else
      echo "There was no matching record for the name " . $searchlink;
  </code></pre>
  
  <p>Something like this. I'm sorry for this code. I'm new here  and will learn the basics:</p>
  
  <pre><code>&lt;div class="info"&gt;
                &lt;h4&gt;&lt;a href="'. $path .'download_'. en_string($rec['fh_Sid']) .'/"&gt;'.de_string($rec['fh_Sid']) .' ' .$rec['fh_Vcaption'] .' '. $rec['fh_Vextension']. '&lt;/a&gt;&lt;span class="updated"&gt;updated&lt;/span&gt;&lt;/h4&gt;
               &lt;div&gt;&lt;img style="float:left;margin-right:5px" src="'. $path . str_replace("t_", "",$rec['fh_Sicon'] ).'"/&gt;&lt;/div&gt;&lt;p&gt;'. substr (strip_tags($rec['fh_Sdescription']),0,170) .' ...&lt;/p&gt;
              &lt;ul class="prod-info"&gt;
                  &lt;li class="none-separator"&gt;Last update: &lt;strong&gt;' . strftime("%d %b %Y", $rec['fh_Vdate']) . '&lt;/strong&gt;&lt;/li&gt;
                  &lt;li&gt;License: &lt;a href="freeware_pop.html" title="'. $rec['fh_Vlicense'] . '"&gt;'. $rec['fh_Vlicense'] . '&lt;/a&gt;&lt;/li&gt;
                  &lt;li&gt;Size: &lt;strong&gt;'.$rec['fh_Vsize'].'&lt;/strong&gt;&lt;/li&gt;
                  &lt;li&gt;Downloads: &lt;strong&gt;'. $views[$sid] .'&lt;/strong&gt;&lt;/li&gt;
                  &lt;li&gt;&lt;img src="../../images/dl.png"/&gt;&amp;nbsp;&lt;a href="'.$path.'download_'.$rec['fh_Sid'].'/"&gt;Download&lt;/a&gt;&lt;/li&gt;
              &lt;/ul&gt;
          &lt;/div&gt;
  </code></pre>