01-05-2016, 09:45 PM
Donc c'est bien ça ?
Code PHP :
<?php
$link = mysqli_connect("localhost", "my_user", "my_password", "world");
/* Désactive l'auto-commit */
mysqli_autocommit($link, FALSE);
mysqli_query($link, "INSERT INTO aeroports_sugg ( A, B ) VALUES ('donnee','donnee')");
/* Validation */
mysqli_commit($link);
/* Rollback */
mysqli_rollback($link);
mysqli_close($link);
?>