| От | M Simms |
|---|---|
| Тема | Re: [GENERAL] What does this mean ? |
| Дата | |
| Msg-id | 199906251731.SAA17709@argh.demon.co.uk обсуждение исходный текст |
| Ответ на | Re: [GENERAL] What does this mean ? (Mario Jorge Nunes Filipe <mjnf@neptuno.sc.uevora.pt>) |
| Список | 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...
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера