meenakshidhar
Programmer
Hi All,
Can anybody plss tell me how to connect PHP and MS SQL Server database...i have WIN98 machine with apache 1.3.2.9 and php 4.3.4 installed...
1. Enable mssql extensions in php.ini
2. Add php_mssql.dll to php.exe working directory
My code is
<?
$msconnect=mssql_connect("1.1.1.1","username","pass"
;
$msdb=mssql_select_db("dbname",$msconnect);
$msquery = "select * from table1";
$msresults= mssql_query($msquery);
while ($row = mssql_fetch_array($msresults)) {
echo "<li>" . $row['fieldname']. "</li>\n";
}
?>
The error which i m getting is "Warning: mssql_connect(): Unable to connect to server: serverip"
Urgent help needed..
Regards
Meenakshi Dhar
Can anybody plss tell me how to connect PHP and MS SQL Server database...i have WIN98 machine with apache 1.3.2.9 and php 4.3.4 installed...
1. Enable mssql extensions in php.ini
2. Add php_mssql.dll to php.exe working directory
My code is
<?
$msconnect=mssql_connect("1.1.1.1","username","pass"
$msdb=mssql_select_db("dbname",$msconnect);
$msquery = "select * from table1";
$msresults= mssql_query($msquery);
while ($row = mssql_fetch_array($msresults)) {
echo "<li>" . $row['fieldname']. "</li>\n";
}
?>
The error which i m getting is "Warning: mssql_connect(): Unable to connect to server: serverip"
Urgent help needed..
Regards
Meenakshi Dhar