I need a PHP programer!!

Discussion in 'PHP' started by Zero55, Oct 1, 2010.

  1. #1
    Hello , i need a very good PHP programer to help me in the statement!!!!!

    if ($casino == $n){
    $newpoints = $points - 1;
    }elseif ($casino < $n){
    $newpoints = $points - 0;
    }

    if ($casino == $n){
    $casino = $casino - 1;
    }elseif ($casino < $n){
    $casino = $casino - 0;
    }

    $array1 = array($shop,$dump,$loan,$casino);
    $newincome = implode("-", $array1);



    if ($casino == $n){
    $newbanks = $bnkpoints + 10;
    }elseif ($casino < $n){
    $newbanks = $bnkpoints - 0;
    }



    Only 2 statements are working!

    Please help , thank you in advance.
     
    Zero55, Oct 1, 2010 IP
  2. zStorm

    zStorm Peon

    Messages:
    21
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    this code is 100% the same you wrote above
    if ($casino == $n){
        $newpoints = $points - 1;
        $casino = $casino - 1;
        $newbanks = $bnkpoints + 10;
    }  
    
    $array1 = array($shop,$dump,$loan,$casino);
    $newincome = implode("-", $array1);
    PHP:
    less code = more efficiency
    now what exactly you want to do ? more details to get more help :)
     
    zStorm, Oct 2, 2010 IP
  3. Zero55

    Zero55 Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you alot , that worked!!!!! :D
    finally:D
     
    Zero55, Oct 3, 2010 IP