Advertisement
Guest User

Untitled

a guest
May 24th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <?php
  2. //Create connection
  3. $mysql_servername = "87.195.54.164";
  4. $mysql_username = "neptunia";
  5. $mysql_password = "VqF65ZhVuJRk7u9q";
  6. $conn = new mysqli($mysql_servername, $mysql_username, $mysql_password);
  7.  
  8. //Check connection
  9. if ($conn->connect_error) {
  10. die("Connection failed: " . $conn->connect_error);
  11. }
  12.  
  13. //Select database
  14. @mysqli_select_db($conn, "neptunia24") or die("Unable to select database: " . $conn->connect_error);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement