rename an html page according to an image within it

Posted by Jake on Stack Overflow See other posts from Stack Overflow or by Jake
Published on 2010-12-28T16:34:50Z Indexed on 2010/12/28 17:53 UTC
Read the original article Hit count: 289

Hi, firstly I'll give some background regarding the situation. I have a website containing approximately 56k pages each page contain a mapped sketch of a machine part. this machine part is made out of smaller parts which are outlined in the image and hold a certain number. when you hover over the numbers a box with the part item code shows up.

I order parts according to this item codes but recently a lot of the items codes have changed, therefore I am looking for a solution.

now I own a database with data on all the 56k parts and I want to link the relevant webpage to each record according to the name of the part(a column in my database), the problem is that the webpages names has no logic name that could connect with the part name in any way but the image that is displayed in the page has the exact name of the part.

I want to rename all the html files I has according to the Images displayed within them. how can I achieve that without renaming all the 56k pages manually?

additionally how can I add the links to all the 56k pages automatically to my database after all the above is done?

Thank you for your patience I know it was long.

© Stack Overflow or respective owner

Related posts about html

Related posts about database