Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<odbc_result_allodbc_setoption>
^ODBC FunctionsLast updated: Mon, 26 Oct 2026

odbc_rollback

(PHP 4, PHP 5, PHP 7, PHP 8)

odbc_rollback — Rollback a transaction

Description

function odbc_rollback(Odbc\Connection $odbc): bool

Rolls back all pending statements on the connection.

Parameters

odbc

The ODBC connection object, see odbc_connect() for details.

Return Values

Returns true on success or false on failure.

Changelog

Version Description
8.4.0 odbc expects an Odbc\Connection instance now; previously, a resource was expected.

<odbc_result_allodbc_setoption>
^ODBC FunctionsLast updated: Mon, 26 Oct 2026