Advertisement
sanjiisan

Untitled

Apr 12th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. $conn = new PDO("mysql:host=$host;dbname=$db;charset=UTF8", $user, $pass);
  2.  
  3. if ($conn->errorCode() != null) {
  4. die("Polaczenie nieudane. Blad: " . $conn->errorInfo()[2]);
  5. }
  6.  
  7. echo("Polaczenie udane.");
  8. $conn = null;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement