The database in the wamp environment is online. thank you. why is the error Warning: array_merge () [function after my environment is configured. array-merge]: Argument #1 isnotanarrayinE: PHPwampwwwconnguolv. phponline14Warning: array_merge () [online database in the fu wamp environment. thank you!
Why is there an error after my environment is configured?
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 'login A0 '@ 'localhost' (using password: YES) in E: \ PHP \ wamp \ www \ conn. php on line 9
Warning: mysql_select_db (): supplied argument is not a valid MySQL-Link resource in E: \ PHP \ wamp \ www \ conn. php on line 10
How can I change my path?
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;
}
------ Solution --------------------
1. check the usage of array_merge.
2 foreach: used to traverse the array. The parameter you provided is incorrect.
3. the username or password is incorrect.