title: PHP variable defaults radio button checked
body: <p>I have a variable called music.  I would like if that variable = no the no radio button is checked and if it = yes the yes radio button is checked.  Any ideas?  Here's what I have so far but isn't working: </p>
  
  <pre><code>&lt;?php
  $music = $venue['music'];
  echo $music;    
  ?&gt;
  
  No&lt;input type="radio" name="music"  value="No" &lt;?php  $music == 'No' ? 'checked' : '' ?&gt;/&gt; 
  Yes&lt;input type="radio" name="music"  value="Yes" &lt;?php  $music == 'Yes' ? 'checked' : '' ?&gt;/&gt; 
  </code></pre>