i want to echo selected data from database as default
( if the user selected country USA in the registration when he want to edit his data , the list choose USA as default and if he want to choose another country and change his first selection he can do that )
<select id="exam_ch" name="exam_ch" class="select_list_exams">
<?php
$sql="SELECT * FROM `exam` WHERE `avilable` = 1 " ;
$result=$ conn->query($sql);
while($row = $result->fetch_assoc()) {
echo "<option value=".$row['id'].">"
. $row['date']." The Time"
. $row['time']."</option>";
}
?>
</select>