1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Help In Mail Script

Discussion in 'PHP' started by monkeyhosts, Dec 8, 2008.

  1. #1
    [​IMG]

    That is a screenshot on how I want it to work. At the bottom of the screen where the "Do It" button is displayed. I am unsure how to make it work so when I check more then one mail I can delete it. Can anyone help?
     
    monkeyhosts, Dec 8, 2008 IP
  2. fireflyproject

    fireflyproject Active Member

    Messages:
    969
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    70
    #2
    Run a loop.

    
    <?php
    $total_email = 5;
    $delete = array(1,2,3,4,5);
    
    for ($i = 0; $i < $total_email; $i++) {
    	sql = "delete from table where id = '" . $delete[$i] . "'";
    	mysql_query($sql);
    }
    
    ?>
    
    PHP:
    This should get you off on the right foot.
     
    fireflyproject, Dec 8, 2008 IP