Thanks for the database in the wamp environment.

Source: Internet
Author: User
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: \ PHP \ wamp \ www \ conn \ guol the database in the wamp environment is online. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.