Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. while($row = mysqli_fetch_assoc($device_list))
  2. {
  3. if ($current_device == $row['device'])
  4. {
  5. echo "<option value={$row['device']} selected='selected'>{$row['device']}</option>";
  6. }
  7. else
  8. {
  9. echo "<option value={$row['device']} >{$row['device']}</option>";
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement