| | |
| | | protected function _initialize() { |
| | | } |
| | | |
| | | function get_table_fields($tableName): array { |
| | | function get_table_fields($tableName) { |
| | | include(CONFIG_PATH . 'db.config.php'); |
| | | $mysqli = new mysqli($db_config['dbhost'], $db_config['dbuser'], $db_config['dbpass'], $db_config['dbname']); |
| | | $query = $mysqli->query("SHOW COLUMNS FROM $tableName"); |
| | |
| | | } |
| | | |
| | | |
| | | function insert_into($table, $data = array()): bool { |
| | | function insert_into($table, $data = array()) { |
| | | $value = array(); |
| | | $this->db->connect(); |
| | | include(PLUS_PATH . 'dbstruct.cache.php'); |