title: Select something from a database where id is equal to a variable
body: <p>I want to select a row from a database table, using where <code>id= 'x'</code>. 
  The thing is that I want to be able to change that 'x' dynamically, so if I need to select a row where <code>id= 'y'</code>, I want to be able to just load y in another row and read it from that row.</p>
  
  <p>Sorry for my bad english.</p>
  
  <pre><code>&lt;?php
   $id = a field from another table
  
   $result = mysqli_query($con,"SELECT * FROM text where id= '$id'");
      while($row = mysqli_fetch_array($result))
          {
              echo $row['text_area'];
          } 
  ?&gt;
  </code></pre>
  
  <p>Here is an image that I hope will explain this better.
  <a href="https://i.stack.imgur.com/nAMoP.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nAMoP.jpg" alt="http://concordia.com.ro/hmm.jpg"></a></p>