Guest User

Untitled

a guest
Feb 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. <?php
  2.  
  3. $server = "4.4.4.4"; // ip of that mysql server
  4. $user = "username";
  5. $pass = "password";
  6. $db = "dbname";
  7.  
  8. $con = mysqli_connect($server, $user, $pass, $db);
  9.  
  10. if (!$con) {
  11. die("Connection failed: " . mysqli_connect_error());
  12. }
  13. echo "Connected successfully";
  14.  
  15. ?>
Add Comment
Please, Sign In to add comment