Home > Backend Development > PHP Tutorial > PHP reads excel and queries specified data_PHP tutorial

PHP reads excel and queries specified data_PHP tutorial

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-07-13 17:04:53
Original
1236 people have browsed it

php reads excel and queries the specified data

   
php tutorial to read excel and query specified data

Score Query System
    
        
        
Description:
  
Please enter correct and complete data.
 ​ 
This query system is for reference only. The actual transcript shall prevail.
For example: Query Class 1, Grade 1 of the Second Specialized Management Department in the first semester of the 2001 academic year
 
Student ID input format example: c017037

   
        
        

            

php代码

$filename=$pl.$p2.$p3.trim($p4).trim($p5).trim($p6). ".dbf";        
if (file_exists($filename))(        
$f=dbase_open($fiiename,0);        
$k=dbase_get_record($f,1);
for($i=2;$i  $a=dbase_get_record($f,$i);        
 if($no==trim($a[0])){        
  echo "

成绩查询系统";        
  echo "
";        
  echo "$a[0] $a[1]
";;        
  echo "";        
  echo"分数";        
  for ($j=2;$j<(dbase_numfields($f));$j++){       
   echo "
$a[$j]";       
  }//end for j       
  break;       
 }//end if        
}//end for i
echo "
";        
dbase_close($f);        
} else {        
echo "错误信息:成绩数据库教程尚未建立
";       
}        
if($no=="") {echo "错误信息:请输入学号
";}
?> 

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/630816.htmlTechArticlephp读取excel并查询指定数据 htmlheae titlephp教程读取excel并查询指定数据/title bodycenter成绩查询系统hr table border=0tr td bgcolor=red align=center)成绩查...
Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
科目名称
$k[$j]