The problem in the image is, I only want Francis to be show in the drop down, when I click the first drop down. In order words, no duplication of names. I hope someone will help me. Thanks in advance. :)
Also here's my code. :)
<tr>
<td><label for="cname">Client Name:</label></td>
<td><select name="cname" id="cname">
<option value="">Choose</option>
<?php
$result = mysqli_query($con, "SELECT ClientName, EventID FROM events");
while($row = mysqli_fetch_assoc($result)){
echo "<option value='{$row["ClientName"]}' data-eid='{$row["EventID"]}' >";
echo $row["ClientName"] . "</option>";
}
?>
</select>
</td>
</tr>