Advertisement
uwong15

Untitled

Aug 26th, 2016
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.26 KB | None | 0 0
  1. $sql_siswa = "SELECT nama from siswa where kelas like '".$_POST["kelas"]."' order by nama;";
  2. $result = $conn->query($sql_siswa);
  3. if ($result->num_rows > 0){
  4.     while($row = $result->fetch_assoc()){
  5.         echo "<option value=\"".$row["nama"]."\">";
  6.     }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement