Question: I have three files: First is a text file with list of names, second is a php file to upload the first file and the

I have three files: First is a text file with list of names, second is a php file to upload the first file and the third php file is supposed to count the occurence of each person's name. I do not understand why my count variables $john, $peter etc do not increment and always stay 0. I have even tried equating $temp=='John_Hopkins ' or $temp=='John_Hopkins' and all other variations. How to fix this code so that each variable stores the occurence of the name?

I have three files: First is a text file with list of

names, second is a php file to upload the first file andthe third php file is supposed to count the occurence of each

ReadFile.php ReadFile.php

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!