ODBC  PHP
--_ www.odbcphp.fr.st _--
Accueil
Bannières
PHPin'up
Fonctions
Liens
Forum
Faites un don
Contact

AxS
ASP - Download
CAT MDB Access
Installation - Historique - Download - Ils parlent - Démo
TRANSFERT Access
Installation - Historique - Download
CVS Access
Installation - Historique - Download - Démo - Aide
XLS Magique
Installation - Historique - Download - Ils parlent - Démo - Aide

PLUS
Graphisme - Débutant - Download

abonnement
désabonnement




Membre


Site au hasard Sites du webring
Rejoindre le webring

MediaPass, la solution de micropaiement sur internet !


ODBC PHP : odbc_rollback
Fonction odbc_rollback

Description initial : Nexen





Fonction :
int odbc_rollback (odbc_prepare connection_id)


Version minimum du PHP :
[PHP 3>= 3.0.6, PHP 4]


Définition :
Annule une transaction


Description :
odbc_rollback() annule toutes les transactions sur la connexion connection_id. odbc_rollback() retourne TRUE en cas de succès, et FALSE en cas d'échec.


Exemple :
<?
$database="catmdb";
$username="root";
$password="";
$nom_base="pdt";

$cnx = odbc_connect($database, $username, $password);

odbc_autocommit($cnx, FALSE); // Stop les transferts

$query .= "UPDATE $nom_base SET nom = 'test' ";
$result = odbc_do($cnx, $query);

odbc_rollback($cnx); // annule la mise a jour
odbc_close($cnx);
?>




Sommaire