chengkun
2025-05-26 8f3df543230cd4403368b39b9bbe5726d11a0284
app/public/action.class.php
@@ -151,7 +151,7 @@
    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");
@@ -163,7 +163,7 @@
    }
    
    
    function insert_into($table, $data = array()): bool {
    function insert_into($table, $data = array()) {
        $value = array();
        $this->db->connect();
        include(PLUS_PATH . 'dbstruct.cache.php');