From 8416d009368fc5ac86159edcb69133d3eef38d97 Mon Sep 17 00:00:00 2001 From: Christopher Kings-Lynne Date: Thu, 1 Dec 2005 01:29:56 +0000 Subject: [PATCH] Fix pg_last_error() example. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@201781 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pgsql/functions/pg-last-error.xml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/reference/pgsql/functions/pg-last-error.xml b/reference/pgsql/functions/pg-last-error.xml index bc0f66a2ca..57d3802d06 100644 --- a/reference/pgsql/functions/pg-last-error.xml +++ b/reference/pgsql/functions/pg-last-error.xml @@ -1,5 +1,5 @@ - + @@ -69,14 +69,12 @@ \n"; -} else { - print pg_last_error($pgsql_conn); - exit; -} + // Query that fails + $res = pg_query($dbconn, "select * from doesnotexist"); + + echo pg_last_error($dbconn); ?> ]]>