Guest User

Untitled

a guest
Sep 24th, 2018
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. <?php
  2.  
  3. public function establishConnection()
  4. {
  5. return "function connectToPostgres() {
  6. \$db= '<dbname>';
  7. \$user= '<user>';
  8. \$pwd= '<pwd>';
  9. \$connection = \"host=<host> port=<port> dbname='\$db' user='\$user' password='\$pwd'\";
  10. \$connect = pg_connect(\$connection);
  11. return \$connect;
  12. }";
  13. }
Add Comment
Please, Sign In to add comment