From: Timothy_maguire@hartehanks.com
To: jules.alberts@arbodienst-limburg.nl
Cc: pgsql-php@postgresql.org
Cc: pgsql-php-owner@postgresql.org
Subject: Re: don't show error messages. how?
Date: Fri, 19 Apr 2002 10:23:16 -0400
Message-ID: <OFAB9E7D16.7FC8C59A-ON85256BA0.004EF398@hartehanks.com> (raw)
Place a '@' before the function.
$c=@ADONewConnection('postgres7');
Tim.
Timothy P. Maguire
Web Developer II
Harte-Hanks
978 436 3325
"Jules Alberts"
<jules.alberts@arbodienst- To: pgsql-php@postgresql.org
limburg.nl> 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: Timothy_maguire@hartehanks.com, jules.alberts@arbodienst-limburg.nl, pgsql-php-owner@postgresql.org
Subject: Re: don't show error messages. how?
In-Reply-To: <OFAB9E7D16.7FC8C59A-ON85256BA0.004EF398@hartehanks.com>
References: <OFAB9E7D16.7FC8C59A-ON85256BA0.004EF398@hartehanks.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox