For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > November 2004 > Re: [PHP-DB] Help me please









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Help me please
Arné klopper

2004-11-08, 3:55 pm

Have you set up a ODBC connection ?

You must set up a ODBC connection in the ODBC Sources that is usually in you Control Panel or Administrator Tools.

You must put it as a System DNS and set up the connection, so your local system know where to find the database.





Kind Regards
Arné Klopper

------------------------------------
NetCB Solutions (Pty) Ltd.
www.netcb.com
Office: +27 12 997 3007
Fax: 27 12 997 3629
Mobile: +27 84 513 4119
[color=darkred]

Can anyone here help me how to connect to an ODBC data?
Here is my code: $odbc = odbc_connect("Ta Fara","","");
And this is the result: Warning: odbc_connect(): SQL error:
[Microsoft][ODBC Driver Manager] Data source name not found and no
default driver specified, SQL state IM002 in SQLConnect in d:\my
documents\my webs\projects\ta fara\main\admin\config.php on line 2

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




Petrus Ali Saputra

2004-11-08, 8:55 pm

Arné klopper wrote:

> Have you set up a ODBC connection ?
>
> You must set up a ODBC connection in the ODBC Sources that is usually in you Control Panel or Administrator Tools.
>
> You must put it as a System DNS and set up the connection, so your local system know where to find the database.
>

I already have and it's been tested from Delphi before. There's no
problem with the connection from Delphi.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com