php连接access数据库时出错
$conn = @new COM("ADODB.Connection") or die ("ADO连接失败!");
$connstr = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" . realpath("database.mdb");
$conn->Open($connstr);
$rs = @new COM("ADODB.RecordSet");
$sql ="select * from admin";
$rs->Open($sql,$conn,1,3);
$rs->close();
这是我的代码,在“$conn->Open($connstr);”时报错,我换了好多网上的代码,每次这句都出错
错误是:
Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Microsoft OLE DB Provider for ODBC Drivers<br/><b>Description:</b> 操作已被取消。' in E:\p\htdocs\jingpinkecheng(03.16)\jpkc\text.php:4 Stack trace: #0 E:\p\htdocs\jingpinkecheng(03.16)\jpkc\text.php(4): com->Open('DRIVER={Microso...') #1 {main} thrown in E:\p\text.php on line 4
各位高手帮帮忙呀~~~
相关问答:
ACCESS数据库中有一个tablename表,设计如下
编号,书名,作者,出版时间,出版社,ISBN,目录,简介
其中除“编号”为自动编号外,其它都为“备注”
其中"编号"维一,在“ISBN”中有的为空值, ......
我刚学习php请问,如果我把php文件上传至服务器后,例如http://www.****.com/cast.php这个文件会不会被别人下载或复制阿?
可以被下载,也可以不被下载,看web服务器对该文件权限的配置
看你对文件权限的设置
......
index.php内容:
$smarty->assign('name',strtotime('-0'));
$smarty->display("index.html");
index.html内容:
{$name|date_format:'%Y-%m-%d'}<hr>
{$ ......
谁有PHP memcached的项目实例,主要用来学习。发送到我的邮箱790684386@qq.com 谢谢
就是看手册就可以了
都是那样子的
key $value
queryphp ORM数据库类
---------------------------------------------------- ......