note 17787 rejected from ref.mssql by irc-html
| From: | irc-html@php.net | Date: | Sun, 30 Dec 2001 02:59:50 +0000 |
| Subject: | note 17787 rejected from ref.mssql by irc-html | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-23954@lists.php.net to get a copy of this message | ||
I don't understand... How i can connect to MsSql from PHP (Win NT + Apache)... I writing the
program and have error: Internal Server Error...
that is a test prog:
<?
$ServerName=<my ServerName>
$UserName=<My UserName>;
$Password=<My Pass>;
dl("extensions/php_mssql.dll");
$q=mssql_connect($ServerName, $UserName, $Password);
$z=mssql_select_db("<My DataBase>", $q);
$e=mssql_query("select * from <My Table>",$q);
$c=mssql_fetch_row($e);
echo $c[0];
?>