Bug #15532 Updated: Fails to connect to MSSQL server
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)