Hi there,
I'm trying to to have an edit page where some data is collect via check boxes.
how do you check the boxes that have previously been checked and storded in the db.
I have a table for the admissions and one for the employees which are joined by bar_admis, this contains the id from both tables
This is how i am trying to do it.
<td><input type="checkbox" name="<? echo($myrow["admissions.admis_id"]); ?>" <? if ($myrow["bar_admis.bar_id"]) != 0 { echo ("checked"} ?>><span class="text"><? echo($myrow["admissions.admission"]); ?></span></td>
but i keep getting a parse error.
thanks again,
dunskii
I'm trying to to have an edit page where some data is collect via check boxes.
how do you check the boxes that have previously been checked and storded in the db.
I have a table for the admissions and one for the employees which are joined by bar_admis, this contains the id from both tables
This is how i am trying to do it.
<td><input type="checkbox" name="<? echo($myrow["admissions.admis_id"]); ?>" <? if ($myrow["bar_admis.bar_id"]) != 0 { echo ("checked"} ?>><span class="text"><? echo($myrow["admissions.admission"]); ?></span></td>
but i keep getting a parse error.
thanks again,
dunskii