Advertisement
Guest User

Untitled

a guest
Oct 25th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. <?php
  2. $servername = "localhost";
  3. $username = "root";
  4. $password = "";
  5. $basename = "biblioteka";
  6.  
  7. $conn = new mysqli($servername, $username, $password, $basename);
  8. if ($conn->connect_error){
  9. die("Polaczenie nieudane. Blad: " . $conn->connect_error);
  10. }
  11. echo "Polaczenie udane.";
  12.  
  13. $conn -> close ();
  14. $conn = null;
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement