Дополнен 3 года назад
<?php while($row1 = mysqli_fetch_array($result1)):;?>
<option value="<?php echo $row1[0];?>">
<?php endwhile;?>
<?php
$servername = "localhost";
$username = "root";
$password = "root";
$dbname = "clb";
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
$query = "SELECT * FROM `org`";
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$result1 = mysqli_query($conn, $query);
$conn->close();
?>