[求助]PHP链接ACCESS数据库报错。。。
<?php$conn = new com("ADODB.Connection");
$connstr="DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=".realpath("News.mdb");
$conn->Open($connstr);
$rs = new com("ADODB.RecordSet");
$rs->Open("select * from NewsCount",$conn,1,1);
while(! $rs->eof) {
$f = $rs->Fields(1);
echo $f->value;
$rs->MoveNext();
}
?>
报错:
Parse error: parse error, unexpected T_VARIABLE in E:\work\completed\PHP\AcseeNews\Conn.php on line 2
请朋友们帮我解决哈这个问题 到底哪儿没对
先谢谢咯好
[此贴子已经被作者于2007-7-5 13:00:29编辑过]