Advertisement
Guest User

Untitled

a guest
May 17th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. function connetti(){
  2. $host = "localhost";
  3. $user = "postgres";
  4. $pass = "password";
  5. $dbname = "BSAirport";
  6. echo "host=$host user=$user password=$pass dbname=$dbname";
  7. return pg_connect("host=$host user=$user password=$pass dbname=$dbname")or die("Cannot connect");
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement