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 ""; $k[$j] $a[$j]";
}//end for j
break;
}//end if
}//end for i
echo "
dbase_close($f);
} else {
echo "错误信息:成绩数据库教程尚未建立
";
}
if($no=="") {echo "错误信息:请输入学号
";}
?>Previous article:php access message board program_PHP tutorial Next article:pdo connection database, query and save data to mysql_PHP tutorialStatement of this WebsiteThe 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.cnLatest Articles by Author
2024-10-22 09:46:29 2024-10-13 13:53:41 2024-10-12 12:15:51 2024-10-11 22:47:31 2024-10-11 19:36:51 2024-10-11 15:50:41 2024-10-11 15:07:41 2024-10-11 14:21:21 2024-10-11 12:59:11 2024-10-11 12:17:31Latest IssuesWhen adding sublime3 to compile system php, use the PHP toolbox, cmd php -v is uselessFrom 1970-01-01 08:00:00000Related TopicsMore>
Compare the similarities and differences between two columns of data in excel
excel duplicate item filter color
How to copy an Excel table to make it the same size as the original
Excel table slash divided into two
Excel diagonal header is divided into two
Absolute reference input method
java export excel
Excel input value is illegal
Popular RecommendationsPopular TutorialsMore>
![]()
![]()
JAVA Beginner's Video Tutorial2625917![]()
Latest DownloadsMore>