Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- </head>
- <body>
- <select>
- <option>Select employ</option>
- <?php
- mysql_connect('localhost','user','pass');
- mysql_select_db('employ');
- $query="select id, name from employ order by name asc";
- $result=mysql_query($query);
- while(list($id, $name)=mysql_fetch_row($result)) {
- echo "<option value=\"".$id."\">".$name."</option>";
- }
- ?>
- </select>
- <div></div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement