//error_reporting(E_ALL); // ini_set("display_errors", 1); define('BASEPATH', './'); define('ENVIRONMENT', 'developer'); include '../application/config/database.php'; $dbconfig = $db['default']; $conn = mysqli_connect($dbconfig['hostname'], $dbconfig['username'], $dbconfig['password'], $dbconfig['database']); ?>