Re: ODBC?

From: Date: Tue, 24 Sep 2002 14:34:47 +0000
Subject: Re: ODBC?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-21965@lists.php.net to get a copy of this message
First make sure you have installed the MyODBC Driver Then make a odbc DSN to the MySQL database. Finally try something like this: odbc_connect($DSN_Name,$UserName, $Password) or die("Could not connect to the datasource"); Hope this helps... "Chris Payne" <chris@planetoxygene.com> escribió en el mensaje news:000801c263d1$2cf7fec0$f7fea8c0@chris... Hi there everyone, I have always used MySQL with PHP without any problems using the standard MySQL connection functionality. Is it possible to connect to a MySQL DB via ODBC? If so, what would the PHP Connection string be? I am curious as my email server allows you to use external databases for users accounts and I figure this way I could write a PHP script to control users email accounts. Thanks everyone, sorry if this sounds like a stupid question, not used ODBC before so even though I know quite abit about PHP/MySQL, I know diddly about ODBC :-) Chris Payne

« previous php.db (#21965) next »