Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'check.php';
- ?>
- <form action="insdb.php" method="post">
- <select name='instype'>
- <?php
- $pgconnhost = "host=10.253.254.237 port=5432 dbname=callservice user=123 password=123";
- $dbconnect = pg_connect($pgconnhost);
- $query = "SELECT user_id FROM users";
- $result = pg_query($dbconnect, $query);
- while ($row = pg_fetch_row($result))
- {
- echo "<option value=".$row[0].">".$row[0]."</option>";
- };
- ?>
- </select>
- <p>
- <input type="submit" /></p>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement