dbms_primeidc init...1

This commit is contained in:
최준흠 2025-04-01 16:47:09 +09:00
parent ac0b2dced5
commit 95226c33bf

View File

@ -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<BR>Query:" . $query . "\n<BR>";
}
$this->_lastQuery = $query;
$stmt = $this->getConnect()->prepare($query);