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

php连接access数据库实现代码

WBOY
WBOYOriginal
2016-05-26 15:22:181562browse

本文章就分享一个简单的代码告诉你如何利用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); 
	

永久链接:

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

Statement:
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