Jump to content

Pdo Postgres Connection


Recommended Posts

Hi, I'm new on this server and I have some problem.

I want to use postgresDB in PHP and I use PDO to achieve it. On my localhost that was simply, but here i have some problems.

$db = new PDO('pgsql:host=localhost port=5432 dbname=NAME_OF_DB user=USER_NAME password=PASSWORD');

This statement work correct, but i get error "could not find driver". How can I add drivers to my account to solve the problem?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...