Received: from newman.hartehanks.com (newman.hartehanks.com [204.89.158.3]) by postgresql.org (Postfix) with ESMTP id 3A98B475956; Fri, 19 Apr 2002 10:27:23 -0400 (EDT) Received: from linmail.hartehanks.com (linmail.hartehanks.com [172.21.116.31]) by newman.hartehanks.com (8.11.2/8.11.2) with ESMTP id g3JEKNX15013; Fri, 19 Apr 2002 10:20:23 -0400 Subject: Re: don't show error messages. how? To: jules.alberts@arbodienst-limburg.nl Cc: pgsql-php@postgresql.org, pgsql-php-owner@postgresql.org X-Mailer: Lotus Notes Release 5.0.6a January 17, 2001 Message-ID: From: Timothy_maguire@hartehanks.com Date: Fri, 19 Apr 2002 10:23:16 -0400 X-MIMETrack: Serialize by Router on linmail/Harte-Hanks(Release 5.0.10 |March 22, 2002) at 04/19/2002 10:23:15 AM MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Archive-Number: 200204/66 X-Sequence-Number: 1090 Place a '@' before the function. $c=@ADONewConnection('postgres7'); Tim. Timothy P. Maguire Web Developer II Harte-Hanks 978 436 3325 "Jules Alberts" cc: Sent by: Subject: don't show error messages. how? pgsql-php-owner@postgresql .org 04/19/2002 10:13 AM Please respond to jules.alberts 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 ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster