diff --git a/extdbms/lib/Core/Model.php b/extdbms/lib/Core/Model.php index fcd5ff5..d4e03f6 100644 --- a/extdbms/lib/Core/Model.php +++ b/extdbms/lib/Core/Model.php @@ -26,7 +26,6 @@ abstract class Model if ($debug === "true") { $this->_debug = true; } - echo $this->_debug ? "TRUE" : "FALSE"; $driver = $_ENV['DATABASE_DRIVER'] ?? $_SERVER['DATABASE_DRIVER'] ?? 'mysql'; $host = $_ENV['DATABASE_HOST'] ?? $_SERVER['DATABASE_HOST'] ?? 'localhost'; $dbname = $_ENV['DATABASE_DB'] ?? $_SERVER['DATABASE_DB'] ?? 'test'; @@ -111,7 +110,7 @@ abstract class Model final public function execute(string $query): bool|PDOStatement { if ($this->_debug) { - echo "\nQuery:" . $query . "\n"; + echo "\n
Query:" . $query . "\n
"; } $this->_lastQuery = $query; $stmt = $this->getConnect()->prepare($query);