Advertisement
Guest User

Untitled

a guest
May 14th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <?php
  2. /*
  3. CONNECT-DB.PHP
  4. Allows PHP to Connecvt to your datbase
  5. */
  6. //Database Variables(edit with your own server information)
  7. $server='localhost';
  8. $user='root';
  9. $pass='';
  10. $db='account';
  11. // Connect to Database
  12. $connection=mysqli_connect($server,$user,$pass)
  13. or die("Could not connect to server..\n". mysqli_error());
  14. mysqli_select_db($connection,$db)
  15. or die("Could not connect to server..\n". mysqli_error());
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement