I am trying to change an svg element depending on data from a mySQL DB.
For example, I have created an svg image in adobe illustrate that has a rectangle for a table and 4 circles as chairs around the table.
I would like to denote each chair as a 'person' and when that 'individual' logs in, the chair would change to a different color and change back when they log out.
I have used php and mySQL for the login aspect and that all works. This would be a graphical representation of the login.
When the data is changed in mySQL (I have a login time-stamp), the image element would also change. I need javascript to do this but I am stumped.
I would like to know if the above scenario is even possible and if so which direction should I take or are there any other alternatives?
I have looked at jquery and raphael js but this is the first time I am working with vector images and any assistance is greatly appreciated.
EDIT ~ I have taken a good look at Raphael JS and I made a php query to MySQL and display the filtered results onto an html page.
How do I link up MySQL DB with my SVG image so each SVG element will change according to my filtered results?