Re: NEWBIE : DB::disconnect for Postgresql returns error
| From: | James 'Chip' Kaufman | Date: | Wed, 12 Mar 2003 17:21:42 +0000 |
| Subject: | Re: NEWBIE : DB::disconnect for Postgresql returns error | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-4187@lists.php.net to get a copy of this message | ||
On Wednesday 12 March 2003 10:53 am, Wim Paulussen wrote:
> James 'Chip' Kaufman wrote:
> > On Wednesday 12 March 2003 10:34 am, Wim Paulussen wrote:
> >>I cannot get the disconnect function to work for PostrgreSQL while
> >>using the PEAR extension. I use DB::disconnect() and get the
> >> message that I make a call to an undefined function . I can
> >> conenct and run queries though .
> >>All help appreciated.
> >>
> >>Wim
> >
> > Please show an example of how you connect and disconnect.
>
> $dsn= "pgsql://user@localhost/database"
>
> $db = DB::connect($dsn); -> works, I can also create tabels and
> insert information
>
> When I call this, it does not function :
>
> DB::disconnect($db);
Try this instead: $db->disconnect();
--
James 'Chip' Kaufman
jkaufman@wamnet.com
PGP key: 697D43DE