www.webdeveloper.com
Results 1 to 5 of 5

Thread: MSSQL connection to php (Call to undefined function mssql_connect())

  1. #1
    Join Date
    Apr 2011
    Posts
    67

    MSSQL connection to php (Call to undefined function mssql_connect())

    Hi!

    i'm new to php to sql connection.

    $server = '.\PHPC019';
    $link = mssql_connect($server, "php", "php");

    if (!$link) {
    die('Something went wrong while connecting to MSSQL');
    }

    i check the $server and it returns '.\\PHPC019' how can i fix this?

  2. #2
    Join Date
    Apr 2011
    Posts
    67
    sorry forgot to be specific, i'm currently running php on IIS and the database that i need to use is SQL the APP is sql server management studio, i need help could anyone help me?

  3. #3
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    18,934
    Sounds like the MSSQL extension is not installed.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  4. #4
    Join Date
    Apr 2011
    Posts
    67
    ok, do you know how to do it?

  5. #5
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    18,934
    Quote Originally Posted by ballball View Post
    ok, do you know how to do it?
    Not really. I would have to read the manual instructions on the page I linked to in my first reply and muddle my way through it.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles