Bug #44234 [Com]: call to undefined function mssql_connect()

From: Date: Wed, 07 Dec 2011 06:45:00 +0000
Subject: Bug #44234 [Com]: call to undefined function mssql_connect()
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-165715@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=44234&edit=1

 ID:                 44234
 Comment by:         rubia_mit09 at yahoo dot com
 Reported by:        adamgeoffrey12 at yahoo dot com
 Summary:            call to undefined function mssql_connect()
 Status:             Bogus
 Type:               Bug
 Package:            MSSQL related
 Operating System:   win xp sp2
 PHP Version:        5.2.5
 Block user comment: N
 Private report:     N

 New Comment:

i have a problem in connectivity php with mssql the error is "undefined function 
mssql_connect() " at local host please tell me solution....


Previous Comments:
------------------------------------------------------------------------
[2008-02-24 19:14:48] msaraujo@php.net

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.



------------------------------------------------------------------------
[2008-02-24 11:51:13] adamgeoffrey12 at yahoo dot com

Description:
------------
im using iis,sql server 2005 and php 5.2.5
the php_mssql.dll extension is already uncommented in php.ini of php 5.2.5 win 32 installer, i have
put the php_mssql.dll and ntwdblib.dll in system 32 and php\:extension folders the fatal error call
to undefined function mssql_connect() still comes. 
 testing for availability of php functions using;-
<?php
if (function_exists('mssql_connect')) {
	echo "Okay, fn is there";
} else {
	echo "Hmmm .. fn is not even there";
}
 ?>
it returns the else part, where the problem will be??plz help me i have suffered this problem for
months.  

Reproduce code:
---------------
the code i used to connect to the database is as follows;-
<?php
$dbserver="localhost, 1433";
$dbuser="sa";
$dbpass="adam";
$dbname="Student";
?>
then
<?php
$dbconn=mssql_connect($dbserver,$dbuser,$dbpass);
mssql_select_db($dbname, $dbconn) or die("Unable to Open The Database");
?>


Expected result:
----------------
to connect to sql server, unfortunately i couldnt, plz plz help me out of this big problem.



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=44234&edit=1


Thread (4 messages)

« previous php.bugs (#165715) next »