How hard would this be?

Discussion in 'PHP' started by GreenDog, Jan 27, 2008.

  1. #1
    Creating a script like this:

    Sites that have been Digged:
    1. URL HERE
    2. URL HERE
    3. URL HERE
    4. URL HERE
    5. URL HERE
    Total Digged Sites: 1433

    Pending Sites to be Digged:
    1. URL HERE
    2. URL HERE
    3. URL HERE
    4. URL HERE
    5. URL HERE
    Sites in Queue: 102

    Once I click on a site in the "Pending sites" it goes to the "Sites I have digged"
     
    GreenDog, Jan 27, 2008 IP
  2. mrmaypole

    mrmaypole Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Not too hard. You could have a database with columns... id, site, digged_at... then the link could be "script.php?digg=$id" and it could update the database digged_at column and digg the site. You could do a general "a href=''" tag for the links in the pending list and an onClick=( some javascript function that calls the query in an ajaxy fashion), or just click the link, have it update the database, then send a header("digg url") to the browser to make it redirect and digg.
     
    mrmaypole, Jan 27, 2008 IP