Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <select name ="nama_barang" >
- <option>
- Select Barang
- </option>
- <?php
- $host = 'localhost';
- $user = 'root';
- $pass = '';
- mysql_connect($host, $user, $pass);
- mysql_select_db('database');
- $select=mysql_query("select * from table");
- while($row=mysql_fetch_array($select))
- {
- echo "<option>".$row['nama']. "</option>";
- }
- ?>
- </select>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement