Database connection error

Source: Internet
Author: User
When the database is connected to adodb, an error is reported.

You want to connect to the SQL server database using abdb. Php is Version 5.2, and the installation path is "C: \ PHP \ APMServ5.2.6 \ PHP"
The website is deployed in "C: \ PHP \ APMServ5.2.6 \ www \ htdocs \ xjjxV2 ". Download the abodb file and decompress it to the directory where the website is located. Test. php is in the website directory and the code is:
  Connect('192.168.127.43','sa','123456','BI');$rs=$conn->Execute("select * from [dbo].[BI_brand]");if($rs){echo "OK";}else{echo $conn->ErrorMsg();}?>

Access error

In the php. ini file, remove the file before "; include_path =..." and report an error.

How can I adjust and modify the access to sqlserver using adodb?


Reply to discussion (solution)

Gives the path of the abodb

Gives the path of the abodb
C: \ PHP \ APMServ5.2.6 \ www \ htdocs \ xjjxV2 \ adodb5

Place adodb5 in the C: \ PHP \ APMServ5.2.6 \ www \ directory.

Adodb5 is put in the C: \ PHP \ APMServ5.2.6 \ www \ directory ..
Neither of the preceding ';' can be modified. I also tried to put adodb5 in C: \ PHP \ APMServ5.2.6 \ www \ htdoc, and modified the code
Include_once ("../adodb5/abodb. inc. php ");
Still not good

Gives the path of the abodb
...


Adodb5 is put in the C: \ PHP \ APMServ5.2.6 \ www \ directory ..
Neither of the preceding ';' can be modified. I also tried to put adodb5 in C: \ PHP \ APMServ5.2.6 \ www \ htdoc, and modified the code
Include_once ("../adodb5/abodb. inc. php ");
Still not good
Try changing to absolute path

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.