![]() ![]() $result = odbc_exec($connection, $statement) I know this particular DSN works because I was able to build another demo file and connect successfully via odbc_connect: $connection = odbc_connect("CS_HDZipCodes32bit", 'demo', 'skdemo!') The $dsn value is the name of the DSN I created in my ODBC Manager. $connection = new PDO($dsn, $username, $password) įatal error: Uncaught exception 'PDOException' with message 'could not find driver' in C:\inetpub\PDO->_construct('odbc:CS_HDZipCo.', 'demo', 'skdemo!') #1 thrown in C:\inetpub\wwwroot\pdoClass.php on line 7 I'm trying to connect to an odbc database via php's PDO class: $dsn = 'odbc:CS_HDZipCodes32bit'
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |