SQL server
Posted by: gsaghinadze (85.238.59.---)
Date: February 25, 2008 12:30PM

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"winking smiley;

mssql_select_db($DATABASE, $Conexion)
or die ("Can't connect to Database"winking smiley;
?>

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.

Options: ReplyQuote
Re: SQL server
Posted by: yfastud (Moderator)
Date: February 25, 2008 01:34PM

Did you enable extenison for sql through wamp tray icon and install the needed ODBC driver for sql yet?

Have fun,

FREE One A Day
FREE Photo
FREE Games
FREE Websites
FREE Portable GPS
FREE WAMP Guides

Options: ReplyQuote


Sorry, only registered users may post in this forum.