Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. <?php
  2. $servername = "localhost";
  3. $username = "root";
  4. $password = "";
  5. $db_name = "newspaper";
  6.  
  7. $conn = mysqli_connect($servername, $username, $password, $db_name);
  8.  
  9. if(!$conn){
  10. die("connection failed: " . mysqli_connect_errno());
  11. }
  12. //echo 'Connection Successfully';
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement