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 ? 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); 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? Link to comment https://forums.phpfreaks.com/topic/245613-mssql_connect-undefined/#findComment-1261511 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.