Advertisement
Guest User

Untitled

a guest
Dec 29th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. mysql Ver 14.14 Distrib 5.7.16
  2. PHP 7.1.0-5+deb.sury.org~xenial+1
  3.  
  4. <?php
  5. $servername = "localhost";
  6. $username = "root";
  7. $password = "password";
  8. echo "yess";
  9. // Create connection
  10. $conn = new mysqli($servername, $username, $password,"loginsystem");
  11. echo "hw";
  12. // Check connection
  13. if ($conn->connect_error) {
  14. die("Connection failed: " . $conn->connect_error);
  15. }
  16. echo "Connected succesfully";
  17. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement