Re: [GENERAL] What does this mean ?
M Simms <grim@argh.demon.co.uk>
From: M Simms <grim@argh.demon.co.uk>
To: mjnf@uevora.pt
Cc: pgsql-general@postgreSQL.org
Date: 1999-06-25T17:31:33Z
Lists: pgsql-general
> 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...