Advertisement
Guest User

Untitled

a guest
Oct 12th, 2016
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <?php
  2.  
  3. // Replace with the username and password you used for PhpMyAdmin.
  4. $server = 'localhost:33067';
  5. $username = 'drupaluser';
  6. $password = '';
  7. $database = 'my_database';
  8.  
  9. // Let's connect!
  10. $connection = mysqli_connect($server, $username, $password, $database);
  11.  
  12. if (mysqli_connect_errno()) {
  13. printf("Connect failed: %sn", mysqli_connect_error());
  14. exit();
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement