Re: don't show error messages. how?

From: Timothy_maguire(at)hartehanks(dot)com
To: jules(dot)alberts(at)arbodienst-limburg(dot)nl
Cc: pgsql-php(at)postgresql(dot)org, pgsql-php-owner(at)postgresql(dot)org
Subject: Re: don't show error messages. how?
Date: 2002-04-19 14:23:16
Message-ID: OFAB9E7D16.7FC8C59A-ON85256BA0.004EF398@hartehanks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php


Place a '@' before the function.

$c=(at)ADONewConnection('postgres7');

Tim.

Timothy P. Maguire
Web Developer II
Harte-Hanks
978 436 3325


"Jules Alberts"
<jules(dot)alberts(at)arbodienst- To: pgsql-php(at)postgresql(dot)org
limburg.nl> cc:
Sent by: Subject: don't show error messages. how?
pgsql-php-owner(at)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

Browse pgsql-php by date

  From Date Subject
Next Message Josh Berkus 2002-04-19 16:10:30 Re: Security - local(TRUST) and php/perl access
Previous Message Jules Alberts 2002-04-19 14:13:20 don't show error messages. how?