PHP pass data from database to Checkbox with contains text
<p>I have an table like this :</p>

<pre><code>no | status
1  | ok, good
2  | ok, good, need to check
</code></pre>

<p>now How can I pass the data to checkbox if contains data like that?</p>

<pre><code>&lt;input type="checkbox" name="status" value=&lt;?php Query for OK; ?&gt; checked/&gt; OK
&lt;input type="checkbox" name="status" value=&lt;?php Query for Good; ?&gt; checked/&gt; Good
&lt;input type="checkbox" name="status" value=&lt;?php Query for Need to check; ?&gt; checked/&gt; Need to check
</code></pre>

<p>Anyone have suggestions ?</p>
