- 精华
- 阅读权限
- 120
- 贡献
- 人
- 好友
- 相册
- 分享
- 听众
- 收听
- 注册时间
- 2010-12-17
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
数据库是2008.
我试用的自己安装,但是安装后出现问题:
<?php
include_once("Lang.php");
$localhost = "USER\SQLEXPRESS"; //服务器地址,一般为主机名或IP加端口
$root = "shadmin"; //服务器MYSQL登陆用户名
$possword = "shpassword"; //服务器的MYsQL登陆密码
$userdb = "SHDB_ACCOUNT"; //用户数据库名称
$roledb = "SHDB_KF"; //角色数据库名称
$useraccountdb = "MZKDB_AREAACCOUNT"; //用户账号数据库名称
$conn = mssql_connect("$USER\SQLEXPRESS","$shadmin","$shpassword") or die ($Lang[TheDatabaseConnectionError]);
mssql_select_db("$userdb",$conn) or die ($Lang[DatabaseTableDoesNotExis]);
//mssql_query("set names gb2312"); //使用文件编码,防止出错
?>
不知道这么配置,IP 账号 密码都填写了,打开网站还是显示这行出错,
请大神看看是哪里填写错误! |
|