Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $conn = new PDO("mysql:host=$host;dbname=$db;charset=UTF8", $user, $pass);
- if ($conn->errorCode() != null) {
- die("Polaczenie nieudane. Blad: " . $conn->errorInfo()[2]);
- }
- echo("Polaczenie udane.");
- $conn = null;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement