If the current version of the back-end software of your website now accepts the data and processes it straight away, but you want to store the data, it sounds as if you need to analyse the contents of the forms and decide on the structure of your database. You may find lots of commonalities between all the different versions. You application must have grown like Topsy, but hopefully it is not too late to pull it together and structure the software properly.
You may want to set up a configuration file with entries covering the local variants of the fields or forms. This configuration file is read in the beginning of the transaction cycle and it determines, based on the location which fields are presented or which business rules are followed when processing the form. The web sites based on a Content Management System (CMS) like Joomla and others, go through the setup like this before the user sees the first icon on the screen or hits the first keystroke.
If you want to see how PHP integrates with MySQL, have a look at an example with installation instructions at http://totaldata.biz/techtips/phpmysql.html. You can look at the source code and also download the example.
If you want to experiment with PHP and MySQL, get the XAMPP from http://www.apachefriends.org/en/xampp.html. With the free MySQL administration tools you can set up a test environment in your PC. There are also free PHP editors available, but often just Notepad or WinSCP3 is adequate, unless you need to find a missing ' or > which causes an obscure syntax error.