How can we solve _ connect (); & nbsp; // connect to MYSQL database _ select_db (); & nbsp; // select the specified database _ set_names (); & nbsp;
_ Connect (); // connect to the MYSQL database
_ Select_db (); // select the specified database
_ Set_names (); // sets the character set
Error
Fatal error: Call to undefined function _ connect () in D: \ wamp \ www \ bbb \ des \ common. inc. php on line 45
Solution
Can you have a group? I am a newbie and have unlimited questions. I will share with you:
------ Solution --------------------
Require ROOT_PATH. 'Des/global. func. php ';
Require ROOT_PATH. 'Des/mysql. func. php ';
The codes of these two files are also posted.
------ Solution --------------------
The problem should be found in define ('root _ path', substr (dirname (_ FILE _), 0,-8 ));
You
Echo ROOT_PATH ,'
';
Echo _ FILE __,'
';
Post result
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