> I really need help here, because i really need this thing working with
> transactions. Just in case here is the code:
>
> 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;
> }
>
>
> When running this i always get an alert box saying "sac-pcgra(2):".
>
> What is wrong?
>
In the program, have you forked since opening the connection to the database?
If so, you MUST open a new connection in the child process rather than
use the same one that is alive in the parent. This could be the problem...