Hi,
There are other lines as well, which have been commented, thats why the error message shows line 15.
Following is the full script :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>PHP ODBC Check</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<?php
$connectionstring = odbc_connect("testdsn","","");
//odbc_close($connectionstring);
?>
</body>
</html>
And following is the error message:
============================================
Warning: SQL error: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified, SQL state IM002 in SQLConnect in D:\wwwcode\php_codes\odbc_test.php on line 13
And there is no space beteen opening and closing bracket in odbc_connect syntax.
Please let me know if you have any other clue.
ONE MORE INFO : I AM RUNNING THIS SCRIPT IN
WINDOWS 2000 ADVANCE SERVER SP2/ IIS5.0 / IE5.5
Thanks.