Advertisement
Guest User

Untitled

a guest
Nov 9th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. <?php
  2.  
  3. include_once "dbconnect.php";
  4.  
  5. try {
  6.  
  7. $conn = new mysqli($host, $user, $pass, $db);
  8. if ($conn->connect_errno!=0)
  9. {
  10. throw new Exception(mysqli_connect_errno());
  11. }
  12.  
  13. } catch() {
  14. echo "Błąd połączenia!";
  15. }
  16.  
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement