php Access数据库怎么连接

PHPz
Release: 2020-09-04 17:59:22
Original
2410 people have browsed it

php Access数据库怎么连接

php Access数据库怎么连接?

第一步

  安装 office 2010 ,这个我就直接pass 过了。 各位同学,大家百度搜下就可以了。 注意与本机操作系统是多少位的 就装多少位的哦!!

 

第二步

  装好 office后 ,首先打开你的  --控制面板--管理工具-- (数据源)ODBC--系统DNS --添加--access 数据库

注意你也可以在ODBC里设置你的账号和密码的。 点击高级就可以设置了。

 

 ed5e654538fa49fe5155526495bd31c.png

第三步

  PHP 连接access数据了的代码如下:

我想说的是 PHP 连接数据有几种方式PDO驱动,ado ,和我今天讲的ODBC 连接方式,

8501bc4bd7d44e540911dd698103a44.png

更多相关知识,请访问PHP中文网

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!