Re: [GENERAL] What does this mean ?

Remigiusz Sokolowski <rems@gdansk.sprint.pl>

From: Remigiusz Sokolowski <rems@gdansk.sprint.pl>
To: mjnf@uevora.pt
Cc: "pgsql-general@postgreSQL.org" <pgsql-general@postgreSQL.org>
Date: 1999-06-28T06:08:21Z
Lists: pgsql-general
> 
> pg_Exec($conn, "abort");
> $result = @pg_Exec($conn, "begin");
> if (!$result);
>   $msg ="sac-pcgra (2):".addslashes(pg_ErrorMessage($conn));
>   $msg = chop($msg);
>   echo "<script>alert(\"$msg\");history.go(-1)</script>";
>   pg_Close($conn);
>   exit;
> }

Error is that You just dont END your transaction
before pg_Close You should have a line pg_Exec( $conn, "END;" );
pg_Close closes Your connection, but doesn't end Your transactions
	Rem

-------------------------------------------------------------------*------------
Remigiusz Sokolowski      e-mail: rems@gdansk.sprint.pl           * *		
-----------------------------------------------------------------*****----------