#1
  1. No Profile Picture
    stbennyh
    Guest
    Devshed Newbie (0 - 499 posts)
    I've try to connect to SQL Server using this script :
    <?
    $con = mssql_connect("extreme","db","xx");
    ?>

    but I always get this message every time :

    Fatal error: Call to unsupported or undefined function mssql_connect() in crogra~1apache~1apachehtdocs/script/coba.php3 on line 2

    I had the "php3_mssql.dll" files and I've uncomment the "extension=php3_mssql.dll" line on the php3.ini file.

    I don't know what should I do again. Anyone can help me ? Please.

    Thank's b4
  2. #2
  3. No Profile Picture
    Hans
    Guest
    Devshed Newbie (0 - 499 posts)
    I don't have any experience with PHP/Apache on Win32 but have you tried restarting Apache? That way the php3.ini file gets reloaded and the extensions get activated (I *think*, don't start bashing me if this doesn't work )
  4. #3
  5. No Profile Picture
    stbennyh
    Guest
    Devshed Newbie (0 - 499 posts)
    I've tried that, still doesn't work.

    I do find something strange ..
    At my home, I try first I try using mssql_connect(), but it fail. Then I try using odbc_connect() and it work. After the ODBC way work, I delete the ODBC setting (so that I can't connect using odbc anymore), and I try using mssql_connect() again. IT WORK !!!

    I've try that again at my office, but it doesn't work.

IMN logo majestic logo threadwatch logo seochat tools logo