I'm working on a banner display program. I need the five banners to rotate on the page which I usually use javascript to do. However, I need to track the views. That means, I load 5 banners in a rotation, but they are not logged as viewed until it rotates to each banner. Once a banner actually appears on the page, I need that view to be logged in the database.
Is it possible to make javascript work with php to increment the views in the mysql database or is there a better solution?