Hi all,
I've been looking on the web, and I'm completely at a blank, so i thought i'd ask you guys if you could help me!
Basically I have php 4.3.4 running apache 2 on a redhat system.
All I want to do is connect to a MS SQL server, but I don't know how to do it.
Warning: odbc_connect(): SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect
I keep getting that error, I think it might be due to setting up a DSN, but I'm not sure how to go about that in linux.
If anyone can point me in the right direction it would be very much appreciated!
RedRasper
Connect to a ODBC DB
Moderator: General Moderators
OK, it seems more the problem now is how to get php in redhat working with odbc.
I have it working from my windows machine, but can't seem to run it from the redhat machine.
What ./configure do i need to get the odbc commands imported into php. I tried --with-odbc, but that doesn't seem to have worked, and so i'm getting errors that odbc_connect is an undefined function.
Any help?
Cheers
RedRasper
I have it working from my windows machine, but can't seem to run it from the redhat machine.
What ./configure do i need to get the odbc commands imported into php. I tried --with-odbc, but that doesn't seem to have worked, and so i'm getting errors that odbc_connect is an undefined function.
Any help?
Cheers
RedRasper