note 17787 added to ref.mssql
| From: | none at php2 dot chek dot com | Date: | Mon, 24 Dec 2001 13:46:31 +0000 |
| Subject: | note 17787 added to ref.mssql | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-23820@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];
?>
--
http://www.php.net/manual/en/ref.mssql.php
http://master.php.net/manage/user-notes.php?action=edit+17787
http://master.php.net/manage/user-notes.php?action=delete+17787
http://master.php.net/manage/user-notes.php?action=reject+17787