-
mssql_connect question
I have mysql ver 3.23 with PHP 4.2.3 and want to connect to a MS SQL 2008 database. Can this be done without downloading 2008 client tools from MS? Having a hard time here. Thanks, anyone!
-
-
-
-
When I do this:
$server="q:/directory/data,3306";
$con=mssql_connect($server,$username,$password) or die (NOPE);
I get this error:
Fatal error: Call to undefined function: mssql_connect() in c:\phpdev\www\worker.php on line 9
When I do this:
$server="q:/directory/data,3306";
$con=odbc_connect($server,$username,$password) or die (NOPE);
I get this error:
Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in c:\phpdev\www\worker.php on line 9
NOPE
Any ideas??
-
-
Are you using MySQL or MSSQL? You wrote both in your first post, and that is important.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks