<?php
include "control/activity.php";
$dd = new activity();
$game = $_REQUEST['game'];
$getForDetails = $dd->fetch_multi("trx_existing_result"," where game_number='$game' ORDER BY 1 DESC limit 20");
foreach($getForDetails as $key){
    $prd1 = substr($key->periods,0,3);
    $prd2 = substr($key->periods,-4);
?>
                                     <div class="van-row result_<?= $key->resultNumber; ?>">
                                        <div class="van-col van-col--4"><?= $prd1; ?>**<?= $prd2; ?></div>
                                        <div class="van-col van-col--4"><p style="margin-left:10px;"><?= substr($key->periods,-6); ?></p></div>
                                        <div class="van-col van-col--4"><p style="margin-left:10px;"><?= explode(" ",$key->action_date)[0]; ?></p></div>
                                        <div class="van-col van-col--3"><p style="margin-left:10px;">*<?= substr($key->hase_key,-4); ?></p></div>
                                        <div class="van-col van-col--5 numcenter">
                                            <div class="GameRecord__C-body-num defaultColor clr4"><?= $key->resultNumber; ?></div>
                                        </div>
                                        <div class="van-col van-col--2">
                                            <div class="GameRecord__C-origin">
                                                <div class="changeColor_<?= $key->resultNumber; ?>" style="border-radius: 50%; width:14px; height:14px;"></div>
                                            </div>
                                        </div>
                                    </div>
                                    
                                    
 <?php } ?>                                   