I'm wondering if it is possible to SET a heading (i.e. Select Name)for the select dropdown that query data from the database. Many thanks
Current code:
<select>
<?php
include("db.php";)
$sql = SELECT * FROM Persons;
$result = mysqli_query($con,$sql);
while ($row = mysqli_fetch_assoc($result)) {
echo "<option value='" . $row['name'] . "'>" . $row['name'] . "</option>";}?>
</select><br>
Desired effect
<select>
<option value="default">Select Name</option>
<option value="Tom">Tom</option>
<option value="Mary">Mary</option>
<option value="John">John</option>
</select><br>