Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include_once "dbconnect.php";
- try {
- $conn = new mysqli($host, $user, $pass, $db);
- if ($conn->connect_errno!=0)
- {
- throw new Exception(mysqli_connect_errno());
- }
- } catch() {
- echo "Błąd połączenia!";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement