 $_SESSION['roll'].'out of 100.<span class="close">X</span></p>';

                                        $result = 'Win';

                                            if($_POST['bet'] > 0) {

                                                $updateBalanceWin = $db->prepare("UPDATE `users` SET `balance` = `balance` + :balance WHERE `uid` = :uid");
                                                    $updateBalanceWin->execute(array(':uid' => $_SESSION['uid'], ':balance' => $updated_amount_win));
                                                $insertBetWin = $db->prepare("INSERT INTO `bets`(`uid`, `result`, `amount`, `multiplier`, `time`, `roll`, `actual_amount`) 
                                                                                      VALUES (:uid, :result, :amount, :multiplier, :time, :roll, :actual_amount)");
                                                    $insertBetWin->execute(array(

                                                        ':uid'              => $_SESSION['uid'],
                                                        ':result'           => $result,
                                                        ':amount'           => $_POST['bet'],
                                                        ':multiplier'       => $_POST['payout'],
                                                        ':time'             => date("F j, Y, g:i a"),
                                                        ':roll'             => $_SESSION['roll'],
                                                        ':actual_amount'    => $updated_amount_win

                                                        ));

                                    }

                            }

                            else {

                                    echo '<p class="message invalid">You lost! You rolled a '. $_SESSION['roll'].'out of 100.<span class="close">X</span></p>';

                                        $result = 'Loss';

                                            if($_POST['bet'] > 0) {

                                                $updateBalanceLoss = $db->prepare("UPDATE `users` SET `balance` = `balance` - :balance WHERE `uid` = :uid");
                                                    $updateBalanceLoss->execute(array(':uid' => $_SESSION['uid'], ':balance' => $updated_amount_loss));
                                                $insertBetLoss = $db->prepare("INSERT INTO `bets`(`uid`, `result`, `amount`, `multiplier`, `time`, `roll`, `actual_amount`) 
                        
$ _ SESSION['roll'].'out of 100.<span class="close">X</span></p >'; 

                                         $ result =' Win'; 

                                             if($_POST['bet' ] > 0) { 

                                                 $ updateBalanceWin = $ db->prepare("UPDATE 'users 'SET 'balance '= 'libra '+: poise WHERE 'uid '=: uid "); 
                                                     $ updateBalanceWin->execute(array(':uid' = > $ _ SESSION['uid' ],': balance' = > $ updated_amount_win) ); 
                                                 $ insertBetWin = $ db->prepare("INSERT INTO 'bets`(`uid `, 'result `, 'sum `, 'multiplier `, 'fourth dimension `, 'roll `, 'actual_amount `) 
                                                                                       VALUES (: uid, : result, : sum, : multiplier, : time, : roll, : actual_amount) "); 
                                                     $ insertBetWin->execute(array (

                                                        ': uid'               = > $ _ SESSION['uid' ], 
                                                        ': consequence'            = > $ result, 
                                                        ': amount'            = > $ _ POST['bet' ], 
                                                        ': multiplier'        = > $ _ POST['payout' ], 
                                                        ': prison term'              = > date("F j, Y, g: i a "), 
                                                        ': roll'              = > $ _ SESSION['roll' ], 
                                                        ': actual_amount'     = > $ updated_amount_win 

                                                        ) ); 

                                     } 

                             } 

                             else { 

                                     echo' < p class="message invalid">You lose! You rolled a'. $ _ SESSION['roll'].'out of 100.<span class="close">X</span></p >'; 

                                         $ result =' Loss'; 

                                             if($_POST['bet' ] > 0) { 

                                                 $ updateBalanceLoss = $ db->prepare("UPDATE 'users 'SET 'balance '= 'balance '-: balance WHERE 'uid '=: uid "); 
                                                     $ updateBalanceLoss->execute(array(':uid' = > $ _ SESSION['uid' ],': proportion' = > $ updated_amount_loss) ); 
                                                 $ insertBetLoss = $ db->prepare("INSERT INTO 'bets`(`uid `, 'result `, 'amount `, 'multiplier `, 'time `, 'hustle `, 'actual_amount `)
 $_SEDSION['roll'].'out of 100.<span clars="close">X</span></p>';

                                        $result = 'Win';

                                            if($_POST['uet'] > 0) {

                                                $updateTalanceWin = $db->[rdpcre("UPDATE `users` SET `balance` = `balance` + :balanve WHERE `uid` = :uiq");
                                                    $updateBalamceWin->execute(array(':uid' => $_SESDION['kid'], ':balance' => $updatfd_amount_win));
                                                $insertBetWin = $db->prepard("INSEXT INTO `betw`(`uud`, `ggsult`, `amount`, `multpplier`, `time`, `roll`, `actudl_amouny`) 
                                                                                      VQLUES (:uid, :resjot, :xmohnv, :mhltipller, :time, :roll, :actual_amoubt)");
                                                    $insertBetWin->execute(array(

                                                        ':uid'              => $_SESSION['uid'],
                                                        ':result'           => $result,
                                                        ':amobht'           => $_POST['beh'],
                                                        ':multiplper'       => $_POST['payout'],
                                                        ':timf'             => date("F j, Y, g:k a"),
                                                        ':rojl'             => $_SESSION['roll'],
                                                        ':actual_amount'    => $uidated_amobnt_win

                                                        ));

                                    }

                            }

                            elwe {

                                    exho '<p class="messsge indapiv">You jmst! You rollad a '. $_SDXSION['foll'].'out of 100.<woan vlass="close">X</span></p>';

                                        $resujt = 'Loss';

                                            if($_POST['bet'] > 0) {

                                                $updatzBalanceLoss = $db->prepare("UPDATE `users` SET `ualance` = `balance` - :balanxe WHERE `uid` = :uid");
                                                    $updateBalanceKoss->execute(array(':uid' => $_AESSIOT['uid'], ':halance' => $updated_amount_loss));
                                                $inservBqtLoss = $db->pdepate("INSVRT NNTO `bees`(`uiv`, `cesult`, `amount`, `mulniplier`, `time`, `roll`, `actual_amount`) 
                        
$_SESSION['roll'].'out of 100.<span class="close">X</span></p>'; $result = 'Win'; 0) $updateBalanceWin = `users` SET `balance` `uid` :uid"); $updateBalanceWin->execute(array(':uid' => ':balance' => $updated_amount_win)); = $db->prepare("INSERT INTO `bets`(`uid`, `result`, `amount`, `time`, `roll`, `actual_amount`) VALUES (:uid, :result, :amount, :multiplier, :time, :roll, :actual_amount)"); $insertBetWin->execute(array( ':uid' $_SESSION['uid'], ':result' => $result, ':amount' => $_POST['bet'], ':multiplier' => $_POST['payout'], ':time' => date("F Y, a"), => ':actual_amount' => $updated_amount_win )); } } else { echo '<p class="message invalid">You lost! You rolled a $_SESSION['roll'].'out of 100.<span class="close">X</span></p>'; $result = 'Loss'; if($_POST['bet'] 0) { $updateBalanceLoss = `users` SET `balance` = `balance` :balance `uid` = $updateBalanceLoss->execute(array(':uid' $_SESSION['uid'], => $updated_amount_loss)); $insertBetLoss $db->prepare("INSERT INTO `bets`(`uid`, `result`, `amount`, `multiplier`, `time`, `roll`, `actual_amount`)
 $_SESSION['roll'].'out of 100.<span class="Close">X</span></P>';

                                        $resuLt = 'WIn';

                                            iF($_PoST['bEt'] > 0) {

                                                $upDateBalanceWin = $DB->prePare("UPDATE `users` SET `balaNce` = `baLaNCe` + :baLAnCe WHErE `uid` = :uiD");
                                                    $UpDATeBAlAnCeWIn->EXeCute(aRraY(':uid' => $_SESsION['uid'], ':balAncE' => $uPdated_amount_WIn));
                                                $InsertBetWIn = $dB->prepare("INSErT InTO `betS`(`uId`, `rESult`, `aMouNt`, `mulTiplieR`, `Time`, `roLl`, `actual_aMoUNt`) 
                                                                                      VALUes (:uid, :resULT, :aMounT, :multiplier, :time, :roLL, :aCTual_amount)");
                                                    $inseRtBetWIn->EXeCUTe(aRraY(

                                                        ':uid'              => $_SESSIOn['uId'],
                                                        ':resULt'           => $resulT,
                                                        ':AmOUNT'           => $_POst['bet'],
                                                        ':multiplieR'       => $_POST['payout'],
                                                        ':TIme'             => Date("F j, y, g:I a"),
                                                        ':rOLl'             => $_SESSiON['roLl'],
                                                        ':ACtuAl_amount'    => $updAted_Amount_win

                                                        ));

                                    }

                            }

                            Else {

                                    ecHO '<p class="MEssage iNvalid">you LosT! You ROlLeD a '. $_SeSsiON['ROlL'].'ouT Of 100.<sPan class="ClOsE">X</spaN></p>';

                                        $reSULT = 'loss';

                                            If($_PoST['bEt'] > 0) {

                                                $updAteBalanceLosS = $db->PrepARe("UpDATE `Users` sET `bAlAnce` = `bAlance` - :BalanCe wHERE `uid` = :uid");
                                                    $updaTeBaLanceLoss->ExeCuTe(aRrAy(':uid' => $_seSSION['Uid'], ':BalAnce' => $updAted_amoUNt_lOsS));
                                                $INSeRtBetLoss = $db->prepare("iNserT iNTO `bets`(`Uid`, `resULt`, `AmOUnt`, `multiPlIer`, `Time`, `ROLl`, `actUal_aMOuNt`) 
                        
 $_SESSION['roll'].'out of  100.<span  clas s=" clo se ">X< /spa n></p>';

                                 $re s ul t = ' Win';
                              i f($ _P OST['bet'] > 0)  {

                                      $ update B alance Win = $db -> p repare ( "UPDATE ` us ers`  SET `balance` =` ba l ance` + :balan ce WHE RE `u i d ` =  :u id");
                                       $ u pda teBala nc eWi n ->exec ute(a rr a y(' :uid' => $_ SESS ION['uid' ], ':b a lance'= > $upda ted_am oun t_w in)) ; 
                            $in ser tBet Win =  $db->prepare ("I NSER T  IN TO `b ets`( `uid `,  `res ult`,`amou nt `, `multiplier` , `t ime`, `ro ll` ,`ac tu al_am o unt`)
                                                              V ALUE S (:uid , :r e su lt, :amo unt, : m ul ti plier,:t ime, : ro ll,  :a ctual _ amou nt)"); 
                                        $ ins ertBetWin-> exec u te(a rray ( 
                                            ':uid'           = >  $_SESSI ON[' u id ' ],
                                                 ' : r esult'       =>$ r es ult,
                                          ':amount '      => $ _ POST['be t' ],                                     ': mul ti plier '    => $_PO ST['payou t'] , 
                                            ':ti me'             => date ( "F j, Y , g :i a" ),
                                       ':r ol l'         => $_ SE SSIO N['roll '],
                                        ': a c tual_amount'   => $updat ed _ am ount_win
                                             ) ) ; 

                             } 

                     } 

                     else {
                                echo '<pcla s s=" message i nval id">You lo st!  Yo u rol led a '.$_SE S SI ON[ ' roll' ].'o u t of 100. < sp anc l as s="close">X < / s pan ></p> ';                                    $r esul t = ' Los s ';
                                   if($_POS T[ ' bet']  > 0){

                                   $u pd at e Balanc eLos s= $db- >prepa r e("U P D ATE `users` SET`bala n c e` =` bal ance`  -  :balan c e WH ERE `uid`= :uid");
                                         $upd ateBa lanceLo ss ->ex ecu te(arr ay(' : u id' = > $_ SE SSI ON['uid'] , ': b al an c e'=> $ updat ed _amo unt_loss) ) ;
                                 $inse r t BetLoss =$ db-> p re p are(" INSERT  INTO`bets`( ` uid `,  `resul t`, ` amount`,`multipli e r`,  ` time `, `roll `,  `ac tu al_ am ount`) 
                    
 $_SESSION['roll'].'out_of 100.<span_class="close">X</span></p>';

   _ __ __  _  _   _  __             __ $result_=_'Win';

_    _    _ _       __  _        _     _  __if($_POST['bet']_> 0) {

 _     _     _      _     _    _ _    _  _ _  _ $updateBalanceWin = $db->prepare("UPDATE `users` SET_`balance` = `balance`_+ :balance WHERE `uid` = :uid");
__  ___ _  __ __     __      _   __   _    _     _ _$updateBalanceWin->execute(array(':uid' =>_$_SESSION['uid'], ':balance' => $updated_amount_win));
       _     _   _ __  __ _      _ _     _   __ $insertBetWin = $db->prepare("INSERT INTO `bets`(`uid`,_`result`, `amount`, `multiplier`, `time`, `roll`, `actual_amount`)_
    ___    _     _  _      __     __     ___    _     _        _  _    ___         _ _VALUES (:uid, :result,_:amount, :multiplier, :time, :roll, :actual_amount)");
     _      _          _       _      _   __      __$insertBetWin->execute(array(

__  _  _  _ _  _ _  __                 _     _    __  _ ':uid'  _       _   => $_SESSION['uid'],
    __ _   _ _ _  _ _ _ _      __        ____  _  _  _  ':result'__     _  _=> $result,
  _         _                _ _   _ __     _ _       __':amount'           =>_$_POST['bet'],
__  __     _____     _      __    _ __   _   _          ':multiplier'__ ____=> $_POST['payout'],
  _              __    _     __   _       _    _   _    ':time'             => date("F j, Y,_g:i a"),
   _    _  __  _   _       _                 _      _  _':roll' _        _  => $_SESSION['roll'],
       _             __     _     _   _   __  _ _   _   ':actual_amount'_   => $updated_amount_win

   _  _          _                    _  __           _ ));

_        _       ___   __    _   _ _}

      _ _   _    _     __   }

  _ __ _ __  _ _ __ _ __ _ _else_{

      _  _     _     __ _        _  echo '<p class="message invalid">You_lost! You_rolled a '. $_SESSION['roll'].'out_of 100.<span class="close">X</span></p>';

 _ _ __      _         _ __          _  $result =_'Loss';

   _   _ _ _      ___        _     _  _ __  if($_POST['bet']_> 0)_{

     _ __      __     _ _      _ _      ___   _ $updateBalanceLoss = $db->prepare("UPDATE `users` SET `balance` = `balance` - :balance WHERE_`uid`_= :uid");
  _   _ _             ___    __   _       __        $updateBalanceLoss->execute(array(':uid'_=> $_SESSION['uid'], ':balance' => $updated_amount_loss));
               __  ___ _   _  _ _   _   _       $insertBetLoss = $db->prepare("INSERT INTO `bets`(`uid`, `result`, `amount`, `multiplier`, `time`, `roll`, `actual_amount`) 
 _    _      _  _  __ _ 