this is my select field in form
<select class="form-control" id="fruits" name="fruits" type="text">
<option value = '0'>-Select-</option>
<option value = '1'>Apple</option>
<option value = '2'>Orange</option>
</select>
This is how I am trying to get the values
$conn = mysqli_connect("localhost", "root", ""); // Establishing Connection with Server..
$db = mysqli_select_db($conn,"basket");
$list= mysqli_query($conn,"SELECT fruits from tbl_shop_A");
$row = $list->fetch_object()
// display names but as the values are storing in databse as option values they are displaying in table also as option value
<th><?php echo $row->fruits; ?></th>
i.e. <th> 2 </th>
The values are storing in database as option values i.e 1, 2
- but I want to display it in table according to their names i.e. orange , apple
How to do that ?