Results 1 to 3 of 3

Thread: Odbc

  1. #1
    Join Date
    Oct 2003
    Posts
    11

    Unanswered: Odbc

    Hi,

    I'm trying to use odbc to connect to mssql server:

    <?php
    $connection_string = 'DRIVER={SQL Server};SERVER=192.168.0.222;DATABASE=bp';

    $user = 'user';
    $pass = 'pass';

    $connection = odbc_connect( $connection_string, $user, $pass );
    ?>

    I get the following error:

    Fatal error: Call to undefined function: odbc_connect() in /usr/home/flowc2/test.php on line 8


    could you please, help me with what is wrong?

    Thanks,
    Rovshan

  2. #2
    Join Date
    Jul 2004
    Location
    Dundee, Scotland
    Posts
    107
    using (PHP 3>= 3.0.6, PHP 4 , or PHP 5) ?

    Then see:
    http://uk.php.net/odbc_connect

    Also:
    If you're using the shared module, make sure that you have the odbc module
    uncommented in the module list in your php.ini file. If not, make sure
    you've compiled PHP with --with-odbc in the configure statement.

  3. #3
    Join Date
    Oct 2003
    Posts
    11
    Thank you very much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •