Sangha-08 Posted July 26, 2008 Share Posted July 26, 2008 I was just wondering is this is possible. I want to make a script so that if a user clicks an ad on my website, it dosent show for the next 6 hours. Anyone got any tips on how to do this (if possible) Thanks Link to comment https://forums.phpfreaks.com/topic/116715-making-ads-dissapering-when-user-clicks/ Share on other sites More sharing options...
ignace Posted July 26, 2008 Share Posted July 26, 2008 you just need to keep track of which ad a user clicked and when clicked_ads ------------- user_id ad_id clicked_time return_time something like this, but with some better names for the fields Link to comment https://forums.phpfreaks.com/topic/116715-making-ads-dissapering-when-user-clicks/#findComment-600111 Share on other sites More sharing options...
Sangha-08 Posted July 26, 2008 Author Share Posted July 26, 2008 and how do i do that, anyone got a sample script??? Thanks. Link to comment https://forums.phpfreaks.com/topic/116715-making-ads-dissapering-when-user-clicks/#findComment-600113 Share on other sites More sharing options...
Sangha-08 Posted July 26, 2008 Author Share Posted July 26, 2008 is Mysql required? Can this be done using Javascript? My website is just a simple anime videos website. Ps - I'm considerably new to php Thanks. Link to comment https://forums.phpfreaks.com/topic/116715-making-ads-dissapering-when-user-clicks/#findComment-600116 Share on other sites More sharing options...
MFHJoe Posted July 26, 2008 Share Posted July 26, 2008 It couldn't be done with JavaScript. It would require some sort of database (mysql, for example). You could also use flat files I suppose (text files that are updated each time an ad is clicked on). Link to comment https://forums.phpfreaks.com/topic/116715-making-ads-dissapering-when-user-clicks/#findComment-600119 Share on other sites More sharing options...
Sangha-08 Posted July 26, 2008 Author Share Posted July 26, 2008 hmm .. im noo good at php and mysql .. I am willing to pay for this script, if anyone makes it. please contact me at amanvirsangha (((at))) yahoo.com Thanks for your help. Link to comment https://forums.phpfreaks.com/topic/116715-making-ads-dissapering-when-user-clicks/#findComment-600128 Share on other sites More sharing options...
paulman888888 Posted July 26, 2008 Share Posted July 26, 2008 DONT PAY Link to comment https://forums.phpfreaks.com/topic/116715-making-ads-dissapering-when-user-clicks/#findComment-600148 Share on other sites More sharing options...
DeanWhitehouse Posted July 26, 2008 Share Posted July 26, 2008 from what i know you would need to make the ad a link to a page you made, where you then update the database , then you redirect to the ad page . Link to comment https://forums.phpfreaks.com/topic/116715-making-ads-dissapering-when-user-clicks/#findComment-600165 Share on other sites More sharing options...
Sangha-08 Posted July 26, 2008 Author Share Posted July 26, 2008 DONT PAY Why? I doubt that anyone here is willing to do it for free ??? :-\ Link to comment https://forums.phpfreaks.com/topic/116715-making-ads-dissapering-when-user-clicks/#findComment-600169 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.