Php reads excel and queries specified data _ PHP Tutorial

Source: Internet
Author: User
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" ";Dbase_close ($ f );} Else {Echo "error message: score database tutorial not created yet";}If ($ no = "") {echo "error message: enter the student ID";}?>
Subject name
$ K [$ j]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.