Home > php教程 > php手册 > php连接access数据库实现代码

php连接access数据库实现代码

WBOY
Release: 2016-05-26 15:22:18
Original
1563 people have browsed it

本文章就分享一个简单的代码告诉你如何利用php来连接access数据库的方法,有需要的同学可以参考一下,代码如下:

<?php 
	$conn = new com("adodb.connection");   
	$connstr="driver={microsoft access driver (*.mdb)}; dbq=". realpath("data/db_database12_185.mdb"); 
	//开源代码phprm.com 
	$conn->open($connstr); 
	
Copy after login

永久链接:

转载随意!带上文章地址吧。

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 admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template