title: Make query results links in PHP
body: <p>I'm trying to turn some query results into click-able links through PHP. I'm a beginner and don't really know much. I'm working with Wordpress. Here's what I'm shooting for:
  <a href="http://www.celebrything.com/" rel="nofollow noreferrer">http://www.celebrything.com/</a></p>
  
  <p>The right side bar is display the count results. I'd like the celebrity names to link to search links for each name. 
  so the first should link to <a href="http://www.celebrything.com/?s=%22Tiger+Woods%22&amp;search=Search" rel="nofollow noreferrer">http://www.celebrything.com/?s=%22Tiger+Woods%22&amp;search=Search</a></p>
  
  <p>Here's the PHP I'm using to display my current results:</p>
  
  <pre><code>&lt;?php
      global $wpdb;
      $result = $wpdb-&gt;get_results('SELECT name, count FROM wp_celebcount');
  
      foreach($result as $row) {
          echo ''.$row-&gt;name.' - '.$row-&gt;count.' Posts &lt;br/&gt;';
      }
  ?&gt;
  </code></pre>
  
  <p>The question is, how to I update this code to turn the names into search links?</p>