Count Advertisement Clicks
I have dynamic advertisement images that show up on a page. I also have a database table advertisementcounter with two fields adcountID and adcountAdID.
The advertisements are pulled in from the database and displayed as jpg images. I already have the images coded so that if the advertisement is clicked then it will go to the website for that advertisement. What I need is for the
What I need is to add the advertisement click to the advertisementcounter table: When the visitor clicks the advertisement it adds the adID to the advertisement counter.adcountAdID. Is it possible to do this with DataAssist?
Here is how I currently have it coded.
<form id="TopAdCounterForm">
<a href="<?php echo($rsTopAd->getColumnVal("adLink")); ?>" target="<?php echo($rsTopAd->getColumnVal("adTarget")); ?>"><img src="advertisments/<?php echo($rsTopAd->getColumnVal("adImage")); ?>" alt="<?php echo($rsTopAd->getColumnVal("adName")); ?>"/></a>
</form>
Thanks for any suggestions or examples.