Advertisement
Guest User

Untitled

a guest
Jan 26th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.33 KB | None | 0 0
  1. <?php
  2. $db_host = 'localhost';
  3. $db_port = '5432';
  4. $db_name = 'fusionpbx';
  5. $db_username = 'fusionpbx';
  6. $db_password = '****';
  7.  
  8. $db = new PDO("pgsql:dbname=$db_name user=$db_username password=$db_password");
  9. $stmt = $db->prepare("select 'hello'");
  10. $stmt->execute();
  11. $result = $stmt->fetchAll(PDO::FETCH_NAMED);
  12. print_r($result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement