title: How to auto select a radio button with PHP on HTML
body: <p>I have this code:</p>
  
  <pre><code>&lt;tr align="center"&gt;
      &lt;td align="center"&gt;
          &lt;div class="column column2"&gt;&lt;label&gt;&lt;input type="radio" name="j" value="Pre-Quarantine" checked="&lt;? if ($dato['Status'] == 'Pre-Quaratine'){ echo true; } ?&gt;"/&gt;&lt;span&gt;Pre-Quarantine&lt;/span&gt;&lt;/label&gt;&lt;/div&gt;&lt;span class="clearfix"&gt;&lt;/span&gt;
      &lt;/td&gt;
      &lt;td align="center"&gt;
          &lt;div class="column column2"&gt;&lt;label&gt;&lt;input type="radio" name="j" value="Quarantine" checked="&lt;? if ($dato['Status'] == 'Quarantine'){ echo true; } ?&gt;"/&gt;&lt;span&gt;Quarantine&lt;/span&gt;&lt;/label&gt;&lt;/div&gt;&lt;span class="clearfix"&gt;&lt;/span&gt;
      &lt;/td&gt;
      &lt;td align="center"&gt;
          &lt;div class="column column2"&gt;&lt;label&gt;&lt;input type="radio" name="j" value="Released" checked="&lt;? if ($dato['Status'] == 'Released'){ echo true; } ?&gt;"/&gt;&lt;span&gt;Released&lt;/span&gt;&lt;/label&gt;&lt;/div&gt;&lt;span class="clearfix"&gt;&lt;/span&gt;
      &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>What I want is to autoselect a radio button based on the value of my database field... But it isn't really working, I would really appreciate if someone could help me :)</p>