Am I using the ternary operator? : <p>Here is my code:</p>

<pre><code>echo "&lt;option value=".$crew_rank_id.".(($crew_rank_id == $crew_rank) ? "selected" : "").&gt;".$crew_rank_table."&lt;/option&gt;";
</code></pre>

<p>what im trying to do is echo out the selected value from the database in <code>echo</code> </p>
