Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. <?php
  2. include 'check.php';
  3. ?>
  4.  
  5.  
  6. <form action="insdb.php" method="post">
  7. <select name='instype'>
  8. <?php
  9. $pgconnhost = "host=10.253.254.237 port=5432 dbname=callservice user=123 password=123";
  10. $dbconnect = pg_connect($pgconnhost);
  11. $query = "SELECT user_id FROM users";
  12. $result = pg_query($dbconnect, $query);
  13. while ($row = pg_fetch_row($result))
  14. {
  15. echo "<option value=".$row[0].">".$row[0]."</option>";
  16. };
  17. ?>
  18. </select>
  19. <p>
  20. <input type="submit" /></p>
  21. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement