RE: [PHP] Where do I specify a DSN? v0.2

2002-07-25 Thread Andrew Hill

David,

The error probably has to do with your PHP environment being unable to
locate your odbc.ini file.

You will need to set your odbc.ini location as well as the location of
the driver manager.  

Check out this HOWTO http://www.iodbc.org/odbc-phpHOWTO.html to get an
idea of how it all works - the instructions should be similar for
UnixODBC.

Hint - look at the putenv() calls.

Best regards,
Andrew Hill
Director of Technology Evangelism
OpenLink Software  http://www.openlinksw.com
Universal Data Access  Virtuoso Universal Server

-Original Message-
From: David Busby [mailto:[EMAIL PROTECTED]] 
Sent: Monday, July 01, 2002 2:55 PM
To: php-general
Subject: [PHP] Where do I specify a DSN? v0.2

List,
Guess I should be more specific:

Heres line four:
$db = odbc_connect(somedsn,sa, );

My System:
RedHat 7.3/Apache/PHP 4.1.2-7
I'm getting this error message...I think I just need to define
the 
DSN...is that done in /etc/odbc.ini?  Or what?

/B

Warning: SQL error: [unixODBC][Driver Manager]Data source name not
found, and no default driver specified, SQL state IM002 in SQLConnect in
/var/www/html/index.php on line 4@


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Where do I specify a DSN? v0.2

2002-07-01 Thread David Busby

List,
Guess I should be more specific:

Heres line four:
$db = odbc_connect(somedsn,sa, );

My System:
RedHat 7.3/Apache/PHP 4.1.2-7
I'm getting this error message...I think I just need to define the 
DSN...is that done in /etc/odbc.ini?  Or what?

/B

Warning: SQL error: [unixODBC][Driver Manager]Data source name not
found, and no default driver specified, SQL state IM002 in SQLConnect in
/var/www/html/index.php on line 4


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Where do I specify a DSN? v0.2

2002-07-01 Thread Jay Blanchard

What kind/version of DB?


-Original Message-
From: David Busby [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 01, 2002 2:55 PM
To: php-general
Subject: [PHP] Where do I specify a DSN? v0.2


List,
Guess I should be more specific:

Heres line four:
$db = odbc_connect(somedsn,sa, );

My System:
RedHat 7.3/Apache/PHP 4.1.2-7
I'm getting this error message...I think I just need to define the 
DSN...is that done in /etc/odbc.ini?  Or what?

/B

Warning: SQL error: [unixODBC][Driver Manager]Data source name not
found, and no default driver specified, SQL state IM002 in SQLConnect in
/var/www/html/index.php on line 4@


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php