dimanche 2 août 2020

How to find a string in the table from text file txt in php with GET method

Create a text file named StudentData.txt that records student information in the following format StudentID | StudentName | BirthDay | AverageMark

(Example: 1 | Nguyen Van A | 10-10-2000 | 7.8 2 | Tran Van B | 12-01-1999 | 8.2 ... at least 20 students)

o Read this file and display it on a web page as a table (with a table)

o When the user transmits information via URL such as & lt; PHPPath & gt;? Id = 2 or & lt; PHPPath & gt;? Name = Nguyen then

 If found below this table export Search Found sentence with information of that student

 If not found below this table export Not Found sentence

o In the highlighted table in blue, the lines in which the students in that line have Scores

Average highest. The same goes for red for students who have a GPA lowest pitcher.




Aucun commentaire:

Enregistrer un commentaire