PDO_ODBC

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
User avatar
liljester
Forum Contributor
Posts: 400
Joined: Tue May 20, 2003 4:49 pm

PDO_ODBC

Post by liljester »

We have a software that uses ODBC to connect. I have successfully made connection and queries with odbc_connect with the following connection:
$db = odbc_connect("DRIVER=CONNX32;UID=username;PWD=password;DD=reg.cdd;NODE=server", "", "");

now, I would like to use PDO_odbc, but I cant seem to figure out how to get it to accept the connection string. I've tried:
$db = new PDO("odbc:DRIVER={CONNX32};UID=username;PWD=password;DD=reg.cdd;NODE=server", "", "");

i have tried many different variations on the above connection string, the returned exception message is almost always: "could not find driver". does anyone have any suggestions?
Post Reply