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
 
<mysqli::rollbackmysqli::select_db>
^mysqliLast updated: Mon, 26 Oct 2026

mysqli::savepoint

mysqli_savepoint

(PHP 5 >= 5.5.0, PHP 7, PHP 8)

mysqli::savepoint -- mysqli_savepoint — Set a named transaction savepoint

Description

Object-oriented style

public function mysqli::savepoint(string $name): bool

Procedural style:

function mysqli_savepoint(mysqli $mysql, string $name): bool

This function is identical to executing $mysqli->query("SAVEPOINT `$name`");

Parameters

mysql

Procedural style only: A mysqli object returned by mysqli_connect() or mysqli_init()

name

The identifier of the savepoint.

Return Values

Returns true on success or false on failure.

See Also


<mysqli::rollbackmysqli::select_db>
^mysqliLast updated: Mon, 26 Oct 2026