ConnectionString= "Provider=Micros">
时间:2021-07-01 10:21:17 帮助过:20人阅读
$conn = @new com("ADODB.Connection") or die ("ADO连接失败!");
$conn->ConnectionString= "Provider=Microsoft.Jet.OLEDB.4.0;User Id=admin;jet OleDB:Database password=tttt;Data Source=d:/u200/tmkq.mdb";
$conn->Open();
if ($emp_rang==""){
$sql_str="select Employee.emp_id,Employee.emp_name From Employee";
}else{
$sql_str='select Employee.emp_id,Employee.emp_name From Employee where Employee.emp_id="'.$emp_rang.'"';
}
echo $sql_str;
$rs_emp=$conn->Execute($sql_str);