diff --git a/pub/bin/php/db_connect.php b/pub/bin/php/db_connect.php index 939be6e..3ce2b84 100644 --- a/pub/bin/php/db_connect.php +++ b/pub/bin/php/db_connect.php @@ -1,21 +1,17 @@ PDO::ERRMODE_EXCEPTION, // Throw exceptions on errors @@ -23,6 +19,6 @@ try { PDO::ATTR_EMULATE_PREPARES => false, // Use real prepared statements ]); } catch (PDOException $e) { - echo "Fout bij verbinden met de database: " . $e->getMessage() . PHP_EOL; + echo "Error connecting to the database: " . $e->getMessage() . PHP_EOL; die(); } \ No newline at end of file diff --git a/pub/config-sample.php b/pub/config-sample.php index de58d1a..5667225 100644 --- a/pub/config-sample.php +++ b/pub/config-sample.php @@ -5,16 +5,16 @@ */ # database server name -$db_server = "localhost"; +define('DB_SERVER', 'localhost'); -# database server port (default = 3306) -$db_port = "3306"; +# database server port +define('DB_PORT', '3306'); # database name -$db_database = "sentri"; +define('DB_DB', 'sentri'); # database user -$db_user = "sentri"; +define('DB_USER', 'sentri'); # Database password -$db_password = "db-password"; \ No newline at end of file +define('DB_PASSWORD', 'db-password'); \ No newline at end of file