Query: maxdb_autocommit
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
MAXDB_AUTOCOMMIT(3) 1 MAXDB_AUTOCOMMIT(3) maxdb_autocommit - Turns on or off auto-commiting database modifications Procedural styleSYNOPSISbool maxdb_autocommit (resource $link, bool $mode)DESCRIPTIONObject oriented style bool maxdb::auto_commit (bool $mode) maxdb_autocommit(3) is used to turn on or off auto-commit mode on queries for the database connection represented by the $link resource.RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 Object oriented style <?php $maxdb = new maxdb("localhost", "MONA", "RED", "DEMODB"); if (maxdb_connect_errno()) { printf("Connect failed: %s ", maxdb_connect_error()); exit(); } /* turn autocommit on */ $maxdb->autocommit(TRUE); /* close connection */ $maxdb->close(); ?> Example #2 Procedural style <?php $link = maxdb_connect("localhost", "MONA", "RED", "DEMODB"); if (!$link) { printf("Can't connect to localhost. Error: %s ", maxdb_connect_error()); exit(); } /* turn autocommit on */ maxdb_autocommit($link, TRUE); /* close connection */ maxdb_close($link); ?> The above example will output something similar to:SEE ALSOmaxdb_commit(3), maxdb_rollback(3). PHP Documentation Group MAXDB_AUTOCOMMIT(3)
Related Man Pages |
---|
maxdb_get_server_info(3) - php |
maxdb_character_set_name(3) - php |
maxdb_get_proto_info(3) - php |
maxdb_get_server_version(3) - php |
maxdb_multi_query(3) - php |
Similar Topics in the Unix Linux Community |
---|
vBadvanced style forum |
[Solved] Disable mySQL autocommit |
Cannot find localhost |
Telnet failed to localhost. |