Guest User

Untitled

a guest
Aug 28th, 2018
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1.  
  2. <?php
  3.  
  4.  
  5. $servername = "172.21.170.15";
  6. $username = "tybca";
  7. $password = "tybca";
  8. $database = "tybca";
  9.  
  10.  
  11. $conn = new mysqli($servername, $username, $password);
  12.  
  13. $result = $conn->query("SELECT student_name FROM student_22");
  14.  
  15.  
  16. echo "<select value=''>Student Name";
  17.  
  18. while ($ary = mysqli_fetch_array($result))
  19. {
  20. echo "<option value=\"" . $ary['student_name'] . "\">" . $ary ['wad'] . "</option>";
  21. }
  22.  
  23. echo "</select>";// Closing of list box
Add Comment
Please, Sign In to add comment