Hello,
I have a windows 2003 server with the last version of xampp, I have to connect to sqlserver through php but I have some errors. My code is the next:
--------------------------------------------------------------------------------------------------
<?php
$connectID = mssql_connect("server","user","pw");
mssql_select_db("Horaris",$connectID);
$result=mssql_query("select * from cpd_esp_espacios_i",$numero );
while ($row=mssql_fetch_array($result)) {
$counter++; $c1=$row["Alias"];
$c2=$row["Nombre"];
echo ("$counter c1: $c1 c2: $c2\n");
}
mssql_close($conectID);
?>
-------------------------------------------------------------------------------------------------
and the error is:
--------------------------------------------------------------------------------------------------
Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server:
'server' in C:\Archivos de programa\xampp\htdocs\sqlserver_test\ejemplo_horaris.php on line 2
--------------------------------------------------------------------------------------------------
Someone can help me?[/i]