meenakshidhar
Programmer
I m using PHP with MSSQL...i have installed FREETDS in my linux box...MSSQL 2000 is on WIN2000 machine..on my linux box i m already using PHP and MYSQL...which is working fine...but i m not abble to connect to MSSQL using PHP...
my code is as follows..
<?
$msconnect=mssql_connect("serverip","username","pass"
or die("could not connect server"
;
$msdb=mssql_select_db("dbname",$msconnect);
$msquery = "select * from tablename";
$msresults= mssql_query($msquery);
while ($row = mssql_fetch_array($msresults)) {
echo "<li>" . $row['fieldname']. "</li>\n";
}
?>
the error which i m getting is--
Fatal error: Call to undefined function: mssql_connect() in /var/ on line 3
is there anything i m missing...i want to use mysql and mssql both with php...
urgent help needed...
Regards
Meenakshi Dhar
my code is as follows..
<?
$msconnect=mssql_connect("serverip","username","pass"
$msdb=mssql_select_db("dbname",$msconnect);
$msquery = "select * from tablename";
$msresults= mssql_query($msquery);
while ($row = mssql_fetch_array($msresults)) {
echo "<li>" . $row['fieldname']. "</li>\n";
}
?>
the error which i m getting is--
Fatal error: Call to undefined function: mssql_connect() in /var/ on line 3
is there anything i m missing...i want to use mysql and mssql both with php...
urgent help needed...
Regards
Meenakshi Dhar