Advertisement
Guest User

Untitled

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