Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- CONNECT-DB.PHP
- Allows PHP to Connecvt to your datbase
- */
- //Database Variables(edit with your own server information)
- $server='localhost';
- $user='root';
- $pass='';
- $db='account';
- // Connect to Database
- $connection=mysqli_connect($server,$user,$pass)
- or die("Could not connect to server..\n". mysqli_error());
- mysqli_select_db($connection,$db)
- or die("Could not connect to server..\n". mysqli_error());
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement