title: How can I add link to json_encode?
body: <p>How can I add clickable link to json_encode?</p>
  
  <p>I did a multiple query auto complete textbox with jquery. Maybe that's not the correct way how to do multiple queries but that's works anyway.</p>
  
  <pre><code>$conn = new PDO("mysql:host=".DB_SERVER.";port=3306;dbname=".DB_NAME, DB_USER, DB_PASSWORD);
          $conn-&gt;setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
  
          $stmt = $conn-&gt;prepare('SELECT * FROM azonositok WHERE guid LIKE :term');
          $stmt-&gt;execute(array('term' =&gt; '%'.$_GET['term'].'%'));
  
          while($row = $stmt-&gt;fetch()) {
              $return_arr[] =  $row['guid']; /// I want to link to http://example.com/guid.php
  
          }
          $stmt1 = $conn-&gt;prepare('SELECT * FROM felhasznalok WHERE fnev LIKE :term');
          $stmt1-&gt;execute(array('term' =&gt; '%'.$_GET['term'].'%'));
  
          while($row1 = $stmt1-&gt;fetch()) {
              $return_arr[] =  $row1['fnev']; /// I want to link to http://example.com/profile.php
          }
  
      } catch(PDOException $e) {
          echo 'HIBA: ' . $e-&gt;getMessage();
      }
  
  
      echo json_encode($return_arr);
  }
  </code></pre>