database.php 220 B

1234567
  1. <?php
  2. require_once(PATH_PHP.'config.php');
  3. $mysqli = new mysqli(get('host'),get('user'),get('password'),get('database'));
  4. if($mysqli->connect_errno){
  5. echo "Failed to connect to MySQL: ".$mysqli->connect_error;
  6. }
  7. ?>