title: Select a title via an id and get a result without <form> </form>
body: <p>I have to make an automatic reply that makes the discussions appear similar, I thought to use the SQL select syntax</p>
  <pre><code>SELECT *
          FROM thread
          WHERE subject LIKE '%$msg%'
          LIMIT 5
  </code></pre>
  <p>I would like to know how I can do something about HTML and PHP LIKE %$variable%</p>
  <p><strong>Example code PHP:</strong></p>
  <pre><code>$msgg=htmlspecialchars($_POST['titlerela']);
  sql = &quot;SELECT * FROM thread WHERE subject LIKE '%$msg%' LIMIT 5&quot;;
  </code></pre>
  <p><strong>Example code HTML:</strong></p>
  <pre><code>&lt;span id=&quot;titlerela&quot;&gt;this is a title...&lt;/span&gt;
  </code></pre>
  <p>In short I would like to select the title in a discussion and insert it on the like, see if there is a similar title and have it displayed to everyone without using <code>&lt;form method=&quot;&quot; action=&quot;&quot;&gt; &lt;/form&gt;</code>, can it be done? If yes how could I do it?</p>