Home  >  Article  >  Backend Development  >  wamp环境中的数据库多谢

wamp环境中的数据库多谢

WBOY
WBOYOriginal
2016-06-13 13:41:48762browse

wamp环境中的数据库在线等谢谢啊
为什么我的环境配好以后会出现错误
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 用户名或者密码错误,导致后面的错误。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article: 简单正则 Next article: mysql图片数据库怎么设计