Advertisement
Guest User

Untitled

a guest
Mar 14th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.42 KB | None | 0 0
  1. <?php
  2.  
  3. $servername = "localhost"; //replace it with your database server name
  4. $username = "samsci";  //replace it with your database username
  5. $password = "scumpa98";  //replace it with your database password
  6. $dbname = "my_samsci";
  7. // Create connection
  8. $conn = mysqli_connect($servername, $username, $password, $dbname);
  9. // Check connection
  10. if (!$conn) {
  11.     die("Connection failed: " . mysqli_connect_error());
  12. }
  13. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement