getting the data on multiple comparisons to php