|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-02-15 12:57 UTC] sander@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 04:00:02 2025 UTC |
<? $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!