I have several tables on my mysql db and would like to find a way where I can select columns of data (numbers) and find out statistics such as the avarage, mode of these numbers. How can I do this using PHP4?