poqoz-87 Posted May 4, 2007 Share Posted May 4, 2007 i am using php 5 and microsoft sql 2000. i am trying to connect php document to microsoft sql database but the error they give me is this: Error selecting the databasePHP Warning: PHP Startup: Unable to load dynamic library './php_pdo_mssql.dll' - The specified module could not be found. in Unknown on line 0 PHP Notice: Undefined variable: connection in C:\Inetpub\wwwroot\practice-php-in-progress\FRE.php on line 11 PHP Notice: Undefined variable: cfg in C:\Inetpub\wwwroot\practice-php-in-progress\FRE.php on line 14 PHP Warning: mssql_select_db() [function.mssql-select-db]: Unable to select database: in C:\Inetpub\wwwroot\practice-php-in-progress\FRE.php on line 14 the codes that i am using to connect the php doc to the database is as follows: <html> <body> <?php while(!$connection){ @$connection = mssql_connect($cfg['localhost'],$cfg['sp'],$cfg['sp']); } $db = mssql_select_db($cfg['Hello'],$connection) or die("Error selecting the database"); ?> </body> </html> can someone tell me what this error means? and how can i solve the error? Quote Link to comment https://forums.phpfreaks.com/topic/49929-connect-php-to-ms-sql-database/ Share on other sites More sharing options...
New Coder Posted May 8, 2007 Share Posted May 8, 2007 Check your php.ini file and see if you have got extension=php_pdo_mssql.dll enabled? Quote Link to comment https://forums.phpfreaks.com/topic/49929-connect-php-to-ms-sql-database/#findComment-247970 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.