I'm working on a project that requires images of souther cali. to be displayed on-the-fly. In a database, I currently have 77 tile entry. (Each tile being part of the overall map). They have tileID's 1-77, and each one has a relative path to the image file, as well as directions (N,NE,E,SE,S,SW,W,NW) with each direction having the number of the tileID it's supposed to go to.
What I want to do is, from an imagemap, when a user clicks on an image, it passes the tileID to some PHP function that pulls that image from the database, and pulls all the possible directions if not null, assigns them an arrow image and writes the link to get to the new tile (in essance passes the next tileID to the original function)
Is there anything like this already that I could just customize to meet my needs?