Well, lets see if I can explain better, I'm never good at it..
1st, a customer would input data using javascript. The script would pass it to a php file where it would then store the info in a database.
2nd, a customer would want to pull up the information. So, they go to the results page, the one I'm working on, and it pulls up the data of their choice, according to the ID. The ID isn't important though.
The data displayed is just like that in the sample file I posted above.
The data is retrieved in the results.php file, using $query = "SELECT auto_id, name_first, name_last, email, mostrecentcheck, mostrecentdate, priorcheck1, priorcheckdate1, priorcheck2, etc......
there are 5 priorchecks in the database, and 5 priorcheckdates, and one from each is taken to match each other. That might be confusing, but I don't know how to explain it. Usually priorchecks and priorcheckdates 1 and 2 will have stuff, or they won't, in either case, if they don't have anything priorchecks will have a value of 0. If any of the priorchecks equal 0, I don't want them to be showed. I hope that helped, otherwise, I'll get a friend to type what I'm trying to do. Thanks!