I would like to change the paramater of a table in my database after I clicked on my checkbox.
<?php foreach ($query->result() as $row) {
?>
<tr>
<td data-title="Optional">
<input type="checkbox" class="mychoice" name ="checkbox" <?php echo ($row->center_lock==1)?"checked":""?> >Chiusura Centralizzata
<input type="checkbox" class="mychoice" name ="checkbox2" <?php echo ($row->dvd==1)?"checked":""?> >DVD
<input type="checkbox" class="mychoice" name ="checkbox3" <?php echo ($row->cd==1)?"checked":""?> >CD
<input type="checkbox" class="mychoice" name ="checkbox4" <?php echo ($row->air_bag==1)?"checked":""?> >AirBag
<input type="checkbox" class="mychoice" name ="checkbox5" <?php echo ($row->air_condition==1)?"checked":""?> >Aria Condizionata
<input type="checkbox" class="mychoice" name ="checkbox6" <?php echo ($row->electric_window==1)?"checked":""?> >Alzacristalli Elettrico
<input type="checkbox" class="mychoice" name ="checkbox7" <?php echo ($row->abs==1)?"checked":""?> >ABS
</td>
</tr>
<?php
} ?>
my database: freekar
table: content
Aucun commentaire:
Enregistrer un commentaire