Wednesday, July 8, 2009

connect sql and php

function mssql_connect()$dbhandle = mssql_connect($myServer, $myUser, $myPass)or die("Couldn't connect to SQL Server on $myServer");//select a database to work with$selected = mssql_select_db($myDB, $dbhandle)or die("Couldn't open database $myDB"); /connection to the database$dbhandle = mssql_connect($myServer, $myUser, $myPass)or die("Couldn't connect to SQL Server on $myServer");//select a

No comments:

Post a Comment