₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,347,495 members, 8,528,096 topics. Date: Tuesday, 01 December 2026 at 06:40 PM

Toggle theme

Mssql Php Connection - Webmasters - Nairaland

Nairaland Forum › Science/Technology › Webmasters › Mssql Php Connection (725 Views)

1 Reply

Mssql Php Connection by Easyphp(op): 10:04am On May 19, 2010
HELLO NAIRALANDERS

I have about 10 computer on a local network of which one is the server (MSSQL SERVER 2005)
Am writing an application on one system with php
i want to connect to the MSSQL database on the server with php so on my connection page i have this script


<?php

$server = 'kalustech\SQLEXPRESS';

$link = mssql_connect($server, 'username', 'password');

if (!$link) {
die('Could not connect to MSSQL');
}

?>



i try it but it did not connect to it, is that script correct? or how should i put it
Re: Mssql Php Connection by Easyphp(op): 10:20am On May 19, 2010
Before than i try using mysql because am pretty good with mysql but i have not use it on a local network b4
if i install the mysql (wamp) on the computer that serve as the main server on the network, what will be the hostname (kalutech or localhost of apache)?

(the network hostname is kalutech)

<?php
$host = "localhost";
$link = mysql_connect("localhost", "username", "password"wink;


if (!$link) {
die('could not connect to MYSQL');
}
?>
1 Reply

Asp.net And Mssql • I Need A Webhosting With Mssql Database And Glassfish Server • Which Is The Fastest Internet Connection In Nigeria • 2 • 3 • 4

Free Website Design Tips And Tutorials • Database Application For Windows Mobile • Antivirus Free Trial