Creating a complicated search engine

Hi, i would like to create a Search Engine/Script where it could display data from multiple tables stored in a mysql database just by entering the column name of the table. For example, displaying all the Heart Rate integer data just by entering the column name which is HeartRate. Any ideas? Please Help Thanks.