> i'm having a hell of a time figuring out how to connect to a postgresql
> database using the pear db abstraction...here's some code snippets:

RTFM (or a tutorial rather)...hate when people answer their own questions,
but here goes:

> $db = DB::connect("pgsql://username:password@localhost/audio");

change to:

$db = DB::connect("pgsql://username:password@unix+localhost:5432/audio")

makes sense....specify protocol, and such; found good documentation here: 



PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to