Please see attached screenshot of what we are aiming to achieve.
The left hand side in grey is static data stored in a MYSQL database (database table would need to be setup).
The right hand side is our attempt to explain the php coding that would be needed.
Basically the page name of a web page would be grabbed and stored as a variable (we can do this bit).
So you would begin with a page name variable such as:
$variabletitle = "Debbie Form Fitting Sleeveless Slit Front Maxi Long Dress"
We would need the following code created:
1) Breakout the $variabletitle into individual words.
2) Check those words against the mysql database, e.g. if $variabletitle contains word 'Dress' then use the 'Dress' table.
3) Then create maximum combination of variables out of the words that are in the $variabletitle which are ALSO in the mysql database.
4) The end result variables would need to stay in word order, e.g. Main Style|Features|Print|Colour|Dress
I hope that makes sense! Any questions please ask.