$vb = $mysqli->query("SELECT * FROM kurs_bufer WHERE nom = 1");
$tib = $vb->fetch_array();
$bp1 = $tib['price'];
$vb = $mysqli->query("SELECT * FROM kurs_bufer WHERE nom = 2");
$tib = $vb->fetch_array();
$bp2 = $tib['price'];
$vb = $mysqli->query("SELECT * FROM kurs_bufer WHERE nom = 3");
$tib = $vb->fetch_array();
$bp3 = $tib['price'];
$vb = $mysqli->query("SELECT * FROM kurs_bufer WHERE nom = 4");
$tib = $vb->fetch_array();
$bp4 = $tib['price'];
$vb = $mysqli->query("SELECT * FROM kurs_bufer WHERE nom = 5");
$tib = $vb->fetch_array();
$bp5 = $tib['price'];
$vb = $mysqli->query("SELECT * FROM kurs_bufer WHERE nom = 6");
$tib = $vb->fetch_array();
$bp6 = $tib['price'];
$vb = $mysqli->query("SELECT * FROM kurs_bufer WHERE nom = 7");
$tib = $vb->fetch_array();
$bp7 = $tib['price'];
$vb = $mysqli->query("SELECT * FROM kurs_bufer WHERE nom = 8");
$tib = $vb->fetch_array();
$bp8 = $tib['price'];
$vb = $mysqli->query("SELECT * FROM kurs_bufer WHERE nom = 9");
$tib = $vb->fetch_array();
$bp9 = $tib['price'];
$vb = $mysqli->query("SELECT * FROM kurs_bufer WHERE nom = 10");
$tib = $vb->fetch_array();
$bp10 = $tib['price'];
$ar = [];
$query = $mysqli->query("SELECT nom, price FROM kurs_bufer");
while ($row = $query->fetch_array()) {
$ar[$row['nom']] = $row['price'];
}