CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 mssql_connect

Print topic Send  topic

Author Message
Robert Rodgers
Posted: 01/30/2003, 10:35 AM

Started playing with PHP in 2.0 beta. and I am getting the error...

Fatal error: Call to undefined function: mssql_connect() in
C:\...\db_mssql.php on line 55
This line falls inside the function.below.

I have never used php and only just installed it on my test server. I
suppose it is probably a setup issue but am unsure where to start.

Any help is appreciated.

Thanks
rob




function connect() {
if ( 0 == $this->Link_ID ) {
if($this->Persistent)
$this->Link_ID=mssql_pconnect($this->DBHost, $this->DBUser,
$this->DBPassword);
else
$this->Link_ID=mssql_connect($this->DBHost, $this->DBUser,
$this->DBPassword);
if (!$this->Link_ID)
$this->halt("Link-ID == false, mssql_pconnect failed");
else
mssql_select_db($this->DBDatabase, $this->Link_ID);
}
}

Christoph Grottolo
Posted: 01/30/2003, 11:39 AM

"Robert Rodgers" <rrodgers@sylvancomputing.com> wrote:

>Started playing with PHP in 2.0 beta. and I am getting the error...
>
>Fatal error: Call to undefined function: mssql_connect() in
>C:\...\db_mssql.php on line 55
>This line falls inside the function.below.
>
>I have never used php and only just installed it on my test server. I
>suppose it is probably a setup issue but am unsure where to start.

You've probably not loaded and configured the mssql extension of php.
Basically you have to enable php_mssql.dll in your php.ini file
(remove the ; at the beginning of the line) AND you must copy
ntwdblib.dll from the dlls folder to your windows\system32 folder (if
it's not already there) AND you must restart your webserver. More info
www.php.net/mssql.

Christoph

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.