Question on PHP connect MS SQL 2005
| From: | Wei, Alice J. | Date: | Wed, 11 Jun 2008 13:34:10 +0000 |
| Subject: | Question on PHP connect MS SQL 2005 | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-45052@lists.php.net to get a copy of this message | ||
Hi,
I have just installed the Apache on a Linux machine, and tried to run the script that contains a
// connection to the database
$dbhandle= mssql_connect($myServer, $myUser, $myPass)
or die("Couldn't connect to SQL Server on $myServer");
When I try to run the PHP script, it gives me this, which the portion it refers to is the code
above:
PHP Fatal error: Call to undefined function mssql_connect() in
/home/TDC/Desktop/create_new_entry_master.php on line 20
I have took a look at the web page at http://us.php.net/function.mssql-connect, but I
don't see my apache having any of the things mentioned, and I have installed the latest
version.
Have I done something wrong here?
Any suggestion is appreciated.
Alice
======================================================
Alice Wei
MIS 2009
School of Library and Information Science
Indiana University Bloomington
ajwei@indiana.edu