Php reads the excel file and queries the specified data. Php reads excel and queries the specified data htmlheaetitlephp tutorial reads excel and queries the specified data titlebodycenter score query system hrtableborder0trtdbgcolorredaligncenter) queries php to read excel and query the specified data
The php Tutorial reads the excel file and queries the specified data.
Score query system
|
Note:
Enter correct and complete data.
This query system is for reference only. the actual transcript prevails.
For example, you can query the first semester of the 2001 academic year, second-level professional management
Example of student ID input format: c017037
|
|
Php code
$ 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"
Score query system ";
Echo "";
Echo "$ a [0] $ a [1]
";;
Echo"
Score";
For ($ j = 2; $ j <(dbase_numfields ($ f); $ j ++ ){
Echo" $ A [$ j]";
} // End for j
Break;
} // End if
} // End for I
Echo"
Htmlheae titlephp tutorial read excel and query the specified data/title bodycenter score query system hr table border = 0tr td bgcolor = red align = center) score query...
";Echo"
| Subject name |
| $ K [$ j] |
";Dbase_close ($ f );} Else {Echo "error message: score database tutorial not created yet";}If ($ no = "") {echo "error message: enter the student ID";}?>