Is there a PHP script that will do this?

Discussion in 'PHP' started by snappingpig, Apr 12, 2008.

  1. #1
    I want to build a function where a user can buy an ad and upload it, and as soon as they pay (I already have shopping cart software), their ad gets displayed on the webpage live.

    Does anyone have the PHP/MySQL code to do this?

    Thanks
    Best
     
    snappingpig, Apr 12, 2008 IP
  2. VoYdE

    VoYdE Peon

    Messages:
    95
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I was working on something like this for one of my sites but I could never get paypal to approve it back to my server...

    What I did was I made an SQL table to hold all the details, the ad had to be approved by an admin then the user could pay, paypal (or whatever your using) needs to communicate to your server tell you to UPDATE your sql to approve it then to display them just have a random sql query to grab one thats approved and show it.

    But by doing this its hard to track all the clicks. I ended up giving up and just using adbrite.

    Hope I kinda sorta maybe helped.
     
    VoYdE, Apr 12, 2008 IP
  3. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #3
    You already have the IPN portion????

    You need upload and display only?

    For a timed display this should not be difficult to write or adapt from existing scripts. As Voyde said above counting clicks or views may be a problem.

    Sorry answer with questions but I did not get a firm grasp on exactly what you want.
     
    Colbyt, Apr 13, 2008 IP