How to get the field name which needs to be used in PHP script to save data in MySQL?