Our project is the integration of php functionality into a Wordpress website, which is supposed to return one of two different texts after a code is being entered and submitted. Those two texts are both are filled with gaps. The gaps are supposed to be filled out with information taken from a .csv database depending on the code the user entered. Also the functionality should check if the code refers to a column in the database which includes a date longer or less than 150 days ago from the presence. Depending on the result of the check either Text A or Text B should be filled out with information from the database as described earlier.
An edited snippet of the database is attached.