Skip to content

Instantly share code, notes, and snippets.

@udibagas
Created April 4, 2013 06:12
Show Gist options
  • Save udibagas/5308232 to your computer and use it in GitHub Desktop.
Save udibagas/5308232 to your computer and use it in GitHub Desktop.
<?php
$sql = mysql_query('SELECT * FROM jurusan WHERE jml_siswa < 30');
?>
<select name="pil_satu">
<?php while ($data = mysql_fetch_array($sql)) : ?>
<option value="<?php echo $data['id']; ?>"><?php echo $data['nama']; ?></option>
<?php endwhile; ?>
</select>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment