Linux SUSE 6.3 (PHP4) >>>>> Windows NT MSSQLServer 7.0
| From: | Torsten Sch�fer | Date: | Wed, 23 May 2001 07:09:13 +0000 |
| Subject: | Linux SUSE 6.3 (PHP4) >>>>> Windows NT MSSQLServer 7.0 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-3260@lists.php.net to get a copy of this message | ||
Hello
How can I get a connection to a MSSQL Server7.0 form a Linux WebServer
(apache) over PHP(4)
I have found some infomation on www.phpbuilder.com (sybase) but it doesn´t
work.
I get the following error: "Fatal error: Call to unsupported or undefined
function mssql_connect() in /usr/local/httpd/htdocs/unix.php3 on line 2"
The Script:
<?php
$link = mssql_connect("...SQL SERVERNAME WinNT
...","...DBUser...","...DBPassword...");
$query = "SELECT * FROM ...Table...";
$result = mssql_query($query,$link);
$number = mssql_num_rows($result);
exit(0);
?>
I´m a beginner of PHP scripting and I´m learning by doing. I hope you can
help me.
Thanks for your help
Torsten Schäfer (Th.schaefer@raw.de)