neginf Posted August 24, 2011 Share Posted August 24, 2011 New to PHP. Trying to connect with a SQL database. Getting fatal error call to undefined function mssql_connect(). We have version 5.3 of PHP. How do you connect to a SQL database ? Quote Link to comment https://forums.phpfreaks.com/topic/245613-mssql_connect-undefined/ Share on other sites More sharing options...
BigTime Posted August 24, 2011 Share Posted August 24, 2011 $usr = "your database username"; $pwd = "your database username password"; $db = "your database name"; $host = "localhost"; # connect to database $cid = mysql_connect($host,$usr,$pwd); Quote Link to comment https://forums.phpfreaks.com/topic/245613-mssql_connect-undefined/#findComment-1261501 Share on other sites More sharing options...
Maq Posted August 24, 2011 Share Posted August 24, 2011 Do you have the php_mssql.(dll | so) enabled in your php.ini? Quote Link to comment https://forums.phpfreaks.com/topic/245613-mssql_connect-undefined/#findComment-1261511 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.