PHP Manual
mysqli_autocommit
(PHP 5)
mysqli_autocommit(no version information, might be only in CVS)
mysqli->autocommit() -- Turns on or off auto-commiting database modificationsDescription
Procedural style:
bool mysqli_autocommit ( mysqli link, bool mode )Object oriented style (method)
class mysqli {bool autocommit ( bool mode )
}
Turns on or off auto-commit mode on queries for the database connection.
To determine the current state of autocommit use the SQL command SELECT @@autocommit.
Parameters
linkProcedural style only: A link identifier returned by mysqli_connect() or mysqli_init()
modeWhether to turn on auto-commit or not.
Examples
Example 2. Procedural style
|
The above example will output:
Autocommit is 1 |
Support PHPRO.ORG
Search
PHPRO.ORG Poll
Warning: Participation in PHPRO.ORG polls may incorrectly lead you to believe your opinions matter.

RSS Feed




