欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

wamp环境中的数据库多谢

程序员文章站 2024-01-05 18:37:04
...
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 用户名或者密码错误,导致后面的错误。
wamp环境中的数据库多谢

声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。

相关文章

相关视频