I could use some logic assistance in designing some code. I have a mysql query that selects information from a table. It is represented as PHP by $query. ($query = SELECT *