Need if condition.

Discussion in 'PHP' started by Alice24, Aug 11, 2009.

  1. #1
    i have a condition
    if ($percentage >= 120)
    and 3 things to execute if the condition is ok.

    $insert1

    $insert2

    $delete

    now the problem is how to setup the first 2 variabiles to be executed first and if was inserted correct then the 3rd variable to be executed.
     
    Alice24, Aug 11, 2009 IP
  2. ptalent

    ptalent Peon

    Messages:
    26
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    if ($percentage >= 120) {
    	if ($insert1 && $insert2) {
    		$delete;
    	}
    }
    PHP:
     
    ptalent, Aug 11, 2009 IP
  3. Alice24

    Alice24 Greenhorn

    Messages:
    59
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #3
    Thank you.
     
    Alice24, Aug 11, 2009 IP