src/ubdb.php
public function add($table, $rowArr){
    $editId = $this->rows($table);

        if($this->edit_id != null){
        $editId = $this->edit_id;
        }

        foreach($this->cols[$table] as $colname){
        $this->rows[$table][$colname][$editId] = $rowArr[$colname];
        }

    return $editId;
    }
public function add($table, $rowArr){
    $editId = $this->rows($table);

        if($this->edit_id != null){
        $editId = $this->edit_id;
        }

        foreach($this->cols[$table] as $colname){
        $this->rows[$table][$colname][$editId] = $rowArr[$colname];
        }

    return $editId;
    }
public function add ( $ table , $ rowArr ) { $ editId = $ this -> rows ( $ table ) ; if ( $ this -> edit_id != null ) { $ editId = $ this -> edit_id ; } foreach ( $ this -> cols [ $ table ] as $ colname ) { $ this -> rows [ $ table ] [ $ colname ] [ $ editId ] = $ rowArr [ $ colname ] ; } return $ editId ; }
Add new row
Add new row