原創(chuàng)" />

亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

PHP中通過ADODB庫實(shí)現(xiàn)調(diào)用Access數(shù)據(jù)庫之修正版本 原創(chuàng)

原創(chuàng)  更新時(shí)間:2006年12月31日 00:00:00   原創(chuàng) 作者:  
最主要的下載地址了,請先看上一篇文章。
http://adodb.sourceforge.net/#download

本地下載下載文件 下載此文件
此文件解壓后放到adodb目錄里,最好是全部啊,不是只有ohtml.inc.php和adodb.inc.php
引用的確實(shí)只要這兩個(gè)就可以了

復(fù)制代碼 代碼如下:

<?php
include('adodb/tohtml.inc.php'); // load code common to ADODB
include('adodb/adodb.inc.php'); // load code common to ADODB
$db = &ADONewConnection("ado_access");
print "<h1>Connecting $db->databaseType...</h1>";
$access = 'E:\php\phpaccess\test.mdb';
$myDSN = 'PROVIDER=Microsoft.Jet.OLEDB.4.0;'.'DATA SOURCE='. $access.';USER ID=;PASSWORD=;';
//注意了,mdb地址是物理地址啊
if (@$db->PConnect($myDSN, "", "", "")) {
print "ADO version=".$db->_connectionID->version.";
";
$sql = 'select thename from news';
$rs = $db->Execute($sql);
rs2html($rs,'border=2 cellpadding=3',array('Customer Name','Customer ID'));
} else print "ERROR: Access test requires a Access database $access".';
'.$db->ErrorMsg();
?>

數(shù)據(jù)庫呢,普通的access數(shù)據(jù)庫,和正常的一樣,不需注意什么
測試通過。如果有更好的建議請,請?jiān)谠u論里指出

相關(guān)文章

最新評論