How can i record clicks on pictures into mysql database?
It is possible with function onComplete or Ajax ?
How can i record clicks on pictures into mysql database? It is possible with
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can add a callback for one of the many callback events Fancybox 2 exposes. In this example I’ll use
afterLoad(if you are using Fancybox 1.X thenonCompletewould be a good event to bind to):Note: The above code snippet assumes that each image has it’s own ID, otherwise
this.orig[0].idneeds to be changed to something unique about each image.Your PHP script would look something like this:
This is of-course expecting you to write your server-side code in PHP.