Advertisement
Guest User

Untitled

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