为什么我的环境配好以后会出现错误
Warning: array_merge() [function.array-merge]: Argument #1 is not an array in E:\PHP\wamp\www\conn\guolv.php on line 14
Warning: array_merge() [function.array-merge]: Argument #2 is not an array in E:\PHP\wamp\www\conn\guolv.php on line 14
Warning: Invalid argument supplied for foreach() in E:\PHP\wamp\www\conn\guolv.php on line 24
Warning: mysql_connect() [function.mysql-connect]: Access denied for user '112a0'@'localhost' (using password: YES) in E:\PHP\wamp\www\conn\conn.php on line 9
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in E:\PHP\wamp\www\conn\conn.php on line 10
我的路径该怎么改
13 if(function_exists(array_merge)){
14 $ArrPostAndGet=array_merge($HTTP_POST_VARS,$HTTP_GET_VARS);
15 }else{
16 foreach($HTTP_POST_VARS as $key=>$value){
17 $ArrPostAndGet[]=$value;
18 }
foreach($HTTP_GET_VARS as $key=>$value){
$ArrPostAndGet[]=$value;
}
------解决方案--------------------
1 去看看array_merge()的用法。
2 foreach遍历数组用的。你提供的参数错误。
3 用户名或者密码错误,导致后面的错误。