i have form field with ratio button . as my mysql database my all data row has a column named status where values like 1, 2, 3 etc.
to get status, my form has ratio button which specify the status. i want all data whatever its status is . as for i make the form field like that : what will be vaule for the ratio button “All”…
<div class="form-group">
<label for="exampleId">Status</label>
<div class="radio">
<label><input type="radio" name="status" value="1" checked>All</label>
<?php
$table = "status_details";
$order = "ASC";
$column = "name";
$datas = getTableDataByTableName($table, $order, $column);
foreach ($datas as $data) {
?>
<label><input type="radio" name="status" value="<?php echo $data->id; ?>"><?php echo $data->name; ?></label>
<?php } ?>
</div>
</div>