Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $servername = "172.21.170.15";
- $username = "tybca";
- $password = "tybca";
- $database = "tybca";
- $conn = new mysqli($servername, $username, $password);
- $result = $conn->query("SELECT student_name FROM student_22");
- echo "<select value=''>Student Name";
- while ($ary = mysqli_fetch_array($result))
- {
- echo "<option value=\"" . $ary['student_name'] . "\">" . $ary ['wad'] . "</option>";
- }
- echo "</select>";// Closing of list box
Add Comment
Please, Sign In to add comment