I have a mysql database set up with column names such as:
Room1Type Room1Level Room1Dimensions Room2Type Room2Level ...etc
The number of rooms will vary depending on each entry. Some rows will have 5 roooms, some will have 30. There is also a column that tells me how many rooms total there are so I can loop through them. The problem is, when looping through them in a "for loop" how can I change the variable name in the loop to reference a single column, such as "$room['Room1Type']" on the first loop and then "$room['Room2type']" on the second loop, etc?