lastInsertRowID example

return [
            'code'    => $this->connID->lastErrorCode(),
            'message' => $this->connID->lastErrorMsg(),
        ];
    }

    /** * Insert ID */
    public function insertID(): int
    {
        return $this->connID->lastInsertRowID();
    }

    /** * Begin Transaction */
    protected function _transBegin(): bool
    {
        return $this->connID->exec('BEGIN TRANSACTION');
    }

    /** * Commit Transaction */
Home | Imprint | This part of the site doesn't use cookies.