<?php
$ListPostavshik = $mysql->query("SELECT * FROM `postavshik` ");
$postavshikrow = $ListPostavshik->fetch_assoc();
$rowcount = mysqli_num_rows($ListPostavshik);
if($rowcount > 0){
for($i=1;$i < $rowcount ; $i++ ){
$postavshik = $ListPostavshik->fetch_assoc();
echo '<option >';
echo $postavshik['Name_pred'];
echo '</option>';
}
}
?>
$result = $mysql->query("SELECT * FROM `postavshik`");
while ($row = $result->fetch_assoc()) {
echo "<option>" . htmlspecialchars($row['Name_pred']). "</option>\n";
}