Bug #15532 Updated: Fails to connect to MSSQL server

From: Date: Fri, 15 Feb 2002 17:57:51 +0000
Subject: Bug #15532 Updated: Fails to connect to MSSQL server
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-378@lists.php.net to get a copy of this message
 ID:               15532
 Updated by:       sander@php.net
 Reported By:      brett@infopop.com
-Status:           Open
+Status:           Bogus
 Bug Type:         Compile Failure
 Operating System: Win2k Server
 PHP Version:      4.1.1
 New Comment:

The bug system is not the appropriate forum for asking support
questions. For a list of a range of more appropriate places to ask
for help using PHP, please visit http://www.php.net/support.php




Previous Comments:
------------------------------------------------------------------------

[2002-02-12 20:20:43] brett@infopop.com

<?
$hostname = "servername";
$username = "Threads";
$password = "Threads";
$dbName = "Threads";

mssql_connect($hostname,$username,$password) or DIE("DATABASE FAILED TO
RESPOND.");
mssql_select_db($dbName) or DIE("Table unavailable");

$query = "SELECT * FROM users";

$result = MSSQL_QUERY($query);

$number = MSSQL_NUM_ROWS($result);

$i=0;

if ($number == 0) :
	print "No data?";
elseif ($number > 0) :
	print "Data:";
	while ($i < $number) :
		$name = mssql_result($result,$i,"Name");
		print $name;
		print "";
		$i++;
	endwhile;
endif;
?>

Effectively this script fails to connect to the database:

Fatal error: Call to undefined function: mssql_connect() in
e:\apache\apache\htdocs\mssql_connect.php on line 7

The php_mssql.dll has been placed in both the includes and the
WINNT\system32 directories and those lines have been uncommented to
include those files.

the php.ini file has had it's included path altered correctly for DOS
pathing

Apache has been stopped and restarted between changes.

Thank you!

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


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



Thread (2 messages)

« previous php.bugs (#378) next »