how to make this approve???

Discussion in 'PHP' started by kk_maths90, Aug 4, 2006.

  1. #1
    Hi guys. I am not into PHP at all but I have got a jokes websites and people can add their jokes but after that I have to approve the jokes. So I was wandering it there any way I can make it auto approve ? please let me know and here is the source codes for approveditem php file... hope this is the the one thts need to be changed plz let me know thanxx a lott :D

     
    kk_maths90, Aug 4, 2006 IP
  2. coderlinks

    coderlinks Peon

    Messages:
    282
    Likes Received:
    19
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,
    Just set the database entry, ItemStatus = 'approved' in the file where the joke submission is recieved and saved. I can help more, if you post the code of the file where the joke is recieved.

    Thomas
     
    coderlinks, Aug 4, 2006 IP
  3. clancey

    clancey Peon

    Messages:
    1,099
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    0
    #3
    If I could add my two cents worth . . . . setting your script to auto-approve jokes is a bad idea unless you have fully secured your scripts and unless you have taken measures to protect against spamming.

    I am sure you are at least using a captcha to make it harder for robots to post to your site. As of this date, that will still block most efforts to submit spam rather than jokes.

    However, auto approval will not stop people without a sense of humor posting "jokes"
     
    clancey, Aug 4, 2006 IP
  4. kk_maths90

    kk_maths90 Peon

    Messages:
    271
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thank you for helpin guys :D problem is fixed :D great thanxx >:D< :D
     
    kk_maths90, Aug 4, 2006 IP