I have installed wampserver, but I can't connect it to SQL server 2005.
<?php
session_start();
set_time_limit(0);
error_reporting(E_ALL);
//complete "station\sqlexpress" with your particular case
$SERVER = "giorgi\MSSQLserver";
$ADMIN_NAME = "sa";
//complete pass with your pass
$ADMIN_PASS = "chelsea";
//complete database witht the name of database you whant to connect to
$DATABASE = "database";
$Conexion = mssql_connect($SERVER, $ADMIN_NAME, $ADMIN_PASS)
or die ("Can't connect to Microsoft SQL Server"
;
mssql_select_db($DATABASE, $Conexion)
or die ("Can't connect to Database"
;
?>
in this code it says: "Fatal error: Call to undefined function mssql_connect() in C:\wamp\www\test1.php on line 14"
please
help me to connect php to SQL 2005 database
Edited 1 time(s). Last edit at 02/25/2008 12:33PM by gsaghinadze.