Hello, my website is created almost intirely in php, its dynamic and we have everything working under mysql database. It has printable cuppons for free, the coupons are inside a form, everything works perfectly. Now im trying to find a (php preferably) script that will count how many times that "print coupon" button has been clicked so i know how much of them have been printed. it can be by inserting it (the amount of clicks) in a database table. i believe it is called a Button Hit counter, but since it already has an action, 'cause it prints, i dont know to make it so it does BOTH, print and count how many have been printed.
Jump to Post
You can use trigger in database. If you have not previously used read this: http://dev.mysql.com/doc/refman/5.6/en/trigger-syntax.html
All 3 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.