Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- defined('BASEPATH') OR exit('Direct script access is not permitted');
- # define('BASEPATH', true); //This line must go at the top of viewable pages without the #
- $server = "localhost";
- $username = "Your_UserName";
- $password = "Your_Password";
- $database = "Your_Database_Name";
- $dbc= new mysqli($server,$username,$password,$database);
- if(!$dbc){
- die("Connection failed:" . mysqli_connect_error());
- }
- /*
- //Confirms you are connected
- else{
- echo "Connected to $database";
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement