Varma69 Posted September 27, 2006 Share Posted September 27, 2006 I am creating a web site using Microsoft SQL Server 2005 and using php. before i used MYSQL and php and everything was fine but now i need to know how to change the connect code from the one i use with mysql to work with Microsoft SQL Server 2005.here is the code i used first can someone show me the modification i need to make.<?php $db = mysql_connect("localhost", "root","") or die ("Connection to the db died"); mysql_select_db("lis",$db) or die ("connection to lis db died");?> Quote Link to comment https://forums.phpfreaks.com/topic/22268-can-some-help-me-with-microsoft-sql-server-2005-connection/ Share on other sites More sharing options...
stockton Posted September 29, 2006 Share Posted September 29, 2006 In my code I just altered the mysql_connect to mssql_connect as well as mysql_select_db to mssql_select_db Quote Link to comment https://forums.phpfreaks.com/topic/22268-can-some-help-me-with-microsoft-sql-server-2005-connection/#findComment-100808 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.