Guest User

Untitled

a guest
Feb 20th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <?php
  2.  
  3. $servername = "localhost";
  4. $username = "root";
  5. $password = "";
  6. $db = "kabzdb";
  7.  
  8. //create connection
  9. $con = mysqli_connect($servername,$username,$password,$db);
  10.  
  11. //check connection
  12. if(!$con){
  13. die("connection failed:".mysqli_connect_error());
  14. }
  15. echo "Connected successfully";
  16. ?>
Add Comment
Please, Sign In to add comment