Re: postgres transactions & php

From: Date: Thu, 22 Jun 2000 00:05:54 +0000
Subject: Re: postgres transactions & php
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-563@lists.php.net to get a copy of this message
moshe wrote: > > how i call 2 function of pg_exec() but the posgres wait with the update > for other conections for the second call. > does some one can point my to good article in the net about this > subject? Don't know if there are any articles but you use postgres transactions to do this First you execute the query "BEGIN" $result = pg_exec("BEGIN") Then send your updates through and if they go into the database commit the tranasactions $result = pg_exec("COMMITT") Or rollback $result = pg_exec("ABORT) Cheers, Graeme

« previous php.db (#563) next »