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