Skip to content

Abby and Win Blog

    Abby and Win Blog

    connect

    database

    Connect to MSSQL 2005 using PHP

    Bysherwin June 29, 2010

    Here’s a couple of quick tips to connecting to a MSSQL 2005 server using PHP on a Windows webserver. You will need to enable the php_mssql.dll in your php.ini file. Here’s the code to connect to the server. <?php $conn = mssql_connect(‘my_server’, ‘db_username’, ‘db_password’); if (!$conn) { die(‘ERROR: Unable to connect to the database.’); }…

    Read More Connect to MSSQL 2005 using PHPContinue

    © 2023 Abby and Win Blog - WordPress Theme by Kadence WP