新手帮助 | 版主申请 | BST制度 | MST制度
返回列表 回复 发帖

急,~急~急~急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&#36;sql = "SELECT * FROM Initt ";
" b& N! Q) O# \$ c8 _&#36;result = mssql_query(&#36;sql);# u, U, q6 `' ?9 b# G, I
&#36;row = mssql_fetch_array(&#36;result);
4 K4 I0 t2 [8 X9 @: E7 Iprint_r(&#36;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请高手们来看看!并给我帮助,偶时时在线~~~急!!!!!!

急,~急~急~急php+sqlserver在win平台上的一个问题!高手来看看

怎么没有回答的啊!真让人伤心哦!版主呢?哪里去了回答下偶的问题塞!

急,~急~急~急php+sqlserver在win平台上的一个问题!高手来看看

抱歉,php+sqlserver没试过.
绰号:小新
姓名:小小程序员
作案地点:www.54master.com
作案专用QQ:408091269

急,~急~急~急php+sqlserver在win平台上的一个问题!高手来看看

还是自力更生好啊!,花了点时间终于搞定了!
返回列表