Assumming your database is structured and loaded with the proper attribute values tied to the proper products...i.e.,
table: product
product_id, soil_type, surface, soil_level
'a', 'oil', 'carpet', 'medium'
You can simply write a .php page to select from the table and display the results, like this page describes.
Is this your first venture with PHP? If so, you should probably check out the 'Newbies' forum.