一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

php读取execel文档

时间:2008-06-20 编辑:简简单单 来源:一聚教程网

php读取execel文档

$path = realpath("Book1.xls");
//创建ADO对象
$ado = new COM("ADODB.Connection") or die("ADO Init Failt");
$ado -> Open("DRIVER={Microsoft Excel Driver (*.xls)};dbq=".$path);
//选择工作表请用:[表名称$]
$sql="select * from [user$]";
$rs=$ado->Execute($sql);
?>


 
   
   
 
   
   
 
   
 
   while(!$rs->eof())
{
  ?>
 
   
   
 
   
   
 
   
 
    $rs->movenext;
  }
  ?>
IDUNMEMAILQQPhoneOther

热门栏目