Pay per Click

November 27, 2009 at 17:06:24
Specs: Windows Vista
I am trying to develop an internal pay per click system for both banners and classified ads. I would like it to use a MySQL Database where;

Post_balance = $ left in the account
Post _cost = $ per click

Here is an example of an existing banner. How do I incorporate the pay per clcik feature?

<img src="/images/pretty.gif"

I have read everything I can find without any success.


See More: Pay per Click

Report •


#1
November 27, 2009 at 17:40:07
How about just have a PHP page that accepts the URL as a parameter. You link the image to that page, and when the page is called, it first records the click into the database and then redirects to the actual URL.

-Ryan Adams

Free Computer Tips and more:http://RyanTAdams.com
Paid Tech Support: Black Diamond


Report •

#2
November 27, 2009 at 19:04:00
Hi Ryan,

Thanks for your input. I just noticed that the existing banner did not have all the information.

For some reason it does not show the complete script. The gif links to an internal page.

I believe it is possible to assign a value such as "click=3" as part of the href" ". it would then go to the new Php page where the click value would be detected and the proper post_cost would be deducted. From there it would redirect to the proper URL.


Report •

#3
November 27, 2009 at 21:56:28
Yes. You should make the image link to something like "http://mysite.com/counter.php?ad=2".

The "counter.php" page connect to a database, increment the "clicks" value for ad "2" by one, and then redirect to the website associated with ad "2". Of course, if you are doing this for any sort of business endeavor, you will need to implement something more secure than that, since a person could automatically load your counter.php page over and over to artificially inflate the clicks.

-Ryan Adams

Free Computer Tips and more:http://RyanTAdams.com
Paid Tech Support: Black Diamond


Report •

Related Solutions


Ask Question