echo '<select style="text-align:center;" class="utente" name="ut1" placeholder="users">';
$query = "SELECT * FROM users";
$result = mysql_query($query,$connection);
if ($result != 0) {
while($user_row = mysql_fetch_array($result))
{
echo "<option value = '".$user_row['id']."'>".$user_row['surname']."</option>";
}
echo "</select>";
echo"<br><br>";
}
mysql_close();
echo '<select style="text-align:center;" class="users" name="ut2" placeholder="users">';
$query = "SELECT * FROM users";
$result = mysql_query($query,$connection);
if ($result != 0) {
while($user_row = mysql_fetch_array($result))
{
echo "<option value = '".$user_row['id']."'>".$user_row['surname']."</option>";
}
echo "</select>";
echo"<br><br>";
}
mysql_close();