Received: from virtual1.giganet.nl (tarantula.giganet.nl [212.125.143.1]) by postgresql.org (Postfix) with ESMTP id 1B61F47626F for ; Fri, 19 Apr 2002 10:15:05 -0400 (EDT) Received: from artemis.cuci.nl (artemis.cuci.nl [212.125.128.9]) by virtual1.giganet.nl (BuGless_3.01) with ESMTP id g3JEF8728114 for ; Fri, 19 Apr 2002 16:15:08 +0200 Received: from adlsa (adlsa.cm.cuci.nl [10.1.12.174]) by artemis.cuci.nl (BuGless_3.01) with ESMTP id g3JEF6Qw013165 for ; Fri, 19 Apr 2002 16:15:07 +0200 Message-Id: <200204191415.g3JEF6Qw013165@artemis.cuci.nl> Received: from Spooler by adlsa (Mercury/32 v3.30) ID MO000215; 19 Apr 02 16:15:08 +0200 Received: from spooler by arbodienst-limburg.nl (Mercury/32 v3.30); 19 Apr 02 16:13:39 +0200 From: "Jules Alberts" Organization: ARBOdienst Limburg BV To: pgsql-php@postgresql.org Date: Fri, 19 Apr 2002 16:13:20 +0200 MIME-Version: 1.0 Subject: don't show error messages. how? Reply-To: jules.alberts@arbodienst-limburg.nl X-mailer: Pegasus Mail for Windows (v4.01) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Archive-Number: 200204/65 X-Sequence-Number: 1089 hello everybody, i'm creating a little login screen to connect from PHP to postgresel 7.2 with adodb. the key part it looks like this: include_once('adodb/adodb.inc.php'); $c=ADONewConnection('postgres7'); if ($c->PConnect('myserver',$id,$pwd,'mydb')) { youreCool(); } else { tryAgain(); } this works OK, only when login fails (incorrect user ID, password), i just want tryAgain() to run, without any errormessages. that's the problem, PConnect() will give an errormessage if it fails, it generates html like your connection has failed blah blah user ID ___________ password ___________ how can i suppress the message? with adodb? from within PHP? TIA for any pointers / help -- Jules Alberts