Display mysql checkbox value in form
<p>A simple question but I can't seem to find the answer.</p>

<p>I have a simple form that inserts the value 'on' to a database when a checkbox is checked</p>

<p>How do I get the checkbox checked when the data is pulled from the database when the form is revisited and displaying with the database information?</p>

<p>I have tried this but it doesn't work</p>

<pre><code>&lt;input type="checkbox" name="positioning" class="input_margin" value="&lt;? $row['positioning']; ?&gt;"&gt;Positioning&lt;br /&gt;
</code></pre>

<p>(I only need help with this, I have the sql query etc set up fine)</p>

<p>Thanks</p>
