php-db | 2002091
Date: 09/12/02
- Next message: LOUD, Mark: "[PHP-DB] Sessions and their function"
- Previous message: David Robley: "[PHP-DB] Re: numeric to word function"
- In reply to: Gian Michele: "[PHP-DB] Problem with dsn"
- Next in thread: Nick Gorham: "[PHP-DB] Re: Problem with dsn"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Gian Michele wrote:
> I have installed on my computer :
> Apache 1.3
> Php 4.1.2
> Postgresql
> the rpm of odbc and the unixODBC.
>
> I tried to connect to my database after done all configurations; I used
> the function odbc_pconnect('name_of_my_database','','') and the system
> gives me this error
> "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/check_avviso2.php on line 5"
>
> Does any body knows as set the DSN and the driver?
>
Have a look in the docs on the unixODBC web site, there are details there.
You need to create a system DSN, and use the name of that DSN in your
connect. Check that you can connect with isql before moving on to PHP.
-- Nick Gorham Easysoft Limited-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: LOUD, Mark: "[PHP-DB] Sessions and their function"
- Previous message: David Robley: "[PHP-DB] Re: numeric to word function"
- In reply to: Gian Michele: "[PHP-DB] Problem with dsn"
- Next in thread: Nick Gorham: "[PHP-DB] Re: Problem with dsn"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

