急,~急~急~急php+sqlserver在win平台上的一个问题!高手来看看
php+sqlserver+aparche在win平台上怎么配置,我在php.ini中开启了extension=php_mssql.dll,下面是连接代码: ^% N1 a' |. p8 H+ D8 X
<?php* ~4 D8 D4 I' l3 t; P. P9 N
mssql_connect("localhost:1433","sa","");
! m# `! a- ?: X4 N/ o! Tmssql_select_db(';CMPP_test';);
3 o: L. U, x/ q' b& M) |$ z$sql = "SELECT * FROM Initt ";
" b& N! Q) O# \$ c8 _$result = mssql_query($sql);# u, U, q6 `' ?9 b# G, I
$row = mssql_fetch_array($result);
4 K4 I0 t2 [8 X9 @: E7 Iprint_r($row);2 n+ g+ ?3 I; v( V7 S) q
?>
& l+ p# X1 S1 t# b. N但是在ie中报错:
- x6 D/ L; p& A6 C: z; _% S7 SWarning: mssql_connect() [function.mssql-connect]: Unable to connect to server: ZHUWEI-CHINA:1433 in D:\Apache2\web\index1.php on line 2
2 L& H+ l$ k- R- v+ L t% YWarning: mssql_select_db() [function.mssql-select-db]: Unable to connect to server: (null) in D:\Apache2\web\index1.php on line 3
+ C0 L: \8 |$ N/ e% }/ nWarning: mssql_select_db() [function.mssql-select-db]: A link to the server could not be established in D:\Apache2\web\index1.php on line 31 {7 ^! g" R. U& W- Y
Warning: mssql_query() [function.mssql-query]: Unable to connect to server: (null) in D:\Apache2\web\index1.php on line 5
! j$ Q/ A4 p; }8 B2 rWarning: mssql_query() [function.mssql-query]: A link to the server could not be established in D:\Apache2\web\index1.php on line 5$ c& R& U/ a! [
Warning: mssql_fetch_array(): supplied argument is not a valid MS SQL-result resource in D:\Apache2\web\index1.php on line 6
_/ d3 e& T) Y请高手们来看看!并给我帮助,偶时时在线~~~急!!!!!! |