문제

When a php website can be opened using xampp/wamp on localhost, how can php file be open in the browser with a MSSQL Server Database? Can it also accessed using localhost. How?

도움이 되었습니까?

해결책

Yo can simply specify MSSQL connection settins in same way what you did with MySql. Before proceeding you check xampp/wampp if php_mssql extension is enabled or not in your php configuration.

example-

$server = 'server_address';
$user   = 'username';
$passwd = 'passwod';
$dbname = 'db_name';

$conn   = mssql_connect($server, $user, $passwd);
mssql_select_db($dbname, $conn);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top