Hi zusammen,
hat auch schon mal das Problem gehabt, dass das autocommit nicht funktioniert?
Laut MySQL :: MySQL PHP API :: 3.9.44 mysqli::rollback, mysqli_rollback müsste es aber gehen.
Folgendes Beispiel:
Warum geht das nicht? Also warum erstellt er die Tabelle obwohl ich autocommit auf false mache?
LG
hat auch schon mal das Problem gehabt, dass das autocommit nicht funktioniert?
Laut MySQL :: MySQL PHP API :: 3.9.44 mysqli::rollback, mysqli_rollback müsste es aber gehen.
Folgendes Beispiel:
PHP:
<?php
$mysql->autocommit(FALSE); // my
$queryCreate = "CREATE TABLE test (id INT(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY, timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP, test FLOAT DEFAULT 0, test2 INT(11) DEFAULT 0, test3 INT(11) DEFAULT 0)";
$mysql->query($queryCreate);
$mysql->rollback();
// erstellt Tabelle
LG