The text file contains a list of students in the form of lines. Each line contains a login, group, last name, first name and patronymic, separated by spaces. Create a script with a WEB-form to search for a student by option: 1- by login 2- by last name 3 by last name and first name 4 by last name and patronymic
- 2You read the file line by line (or all into an array, but then you go all the same line by line through this array), break the line into fields (with the line, nothing happens, it is entirely in a variable) (explode apparently) check the contents of the required fields for the required text , if matched - print a string from a variable - Mike
- it is better to take mysql and parse this file there, and then look in the columns. - Naumov
- Comments made my evening! Yes, PHP is a special language. - 0andriy
- For the decision of the labs, you must go to the local nerds and be affixed;). At least what code they wrote ... - E_p
|