<?php $wwwlist = mysqli_query ($connection, "SELECT * FROM $dbtable WHERE userid = '$user' ");
?>
<form method = "post">
<span>Сайт</span>
<select>
<?php while($data = mysqli_fetch_array($wwwlist)) {
echo "<option>. $data ['name']</option>";
}
?>
echo "<option>{$data['name']}</option>";
echo '<option>'.$data['name'].'</option>';
echo "SELECT * FROM $dbtable WHERE userid = '$user' ";