Advertisement
Guest User

conn.php

a guest
Nov 30th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.29 KB | None | 0 0
  1. <?php
  2.  
  3.     $host = "localhost";
  4.     $username = "root";
  5.     $password = "";
  6.     $dbname = "ezsecurity";
  7.     $con = mysqli_connect($host, $username, $password, $dbname);
  8.    
  9.     $con-> set_charset("utf8");
  10.    
  11.     if(mysqli_connect_errno()){
  12.         echo "Failed to connect to MySQL: ". mysqli_connect_error();
  13.     }
  14.  
  15.  
  16. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement