Syntax error

Parse error: syntax error, unexpected '[' in C:\xampp\htdocs\UKK-Pengaduan-Masyarakat-master\config\Database.php on line 13

PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_OBJ ];

try { $this->connection = new PDO("mysql:host=$this->server;dbname=$this->database", $this->user, $this->password, $options);

return $this->connection; } catch (PDOException $e) { echo $e->getMessage(); } }

public function disconnect() { $this->connection = null; }

public function query($sql_query) { return $this->connect()->query($sql_query); }

public function getAll($table) { return $this->connect()->query("SELECT * FROM $table")->fetchAll(); }

}

avatar 0112
@0112

1 Kontribusi 0 Poin

Dipost 4 tahun yang lalu

Belum ada Jawaban. Jadi yang pertama Jawaban

Login untuk ikut Jawaban