您好,我无法连接到 sqlserver 2008 我正在尝试创建一个简单的登录系统,这就是我所拥有的:
<?php
session_start();
if(!isset($_SESSION["user_id"])){
header("location:../../login.html");
}
?>
<?php
$username = $_POST[txt_usernmae];
$user_id = $_POST[txt_password];
mysql_connect($server, $username, $password) or die("No Server Found");
mysql_select_db($schema) or die("No Connection");
?>