<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://tabelkinjit.com/live-draw-hk/");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$html = curl_exec($ch);
curl_close($ch);

$doc = new DOMDocument();
libxml_use_internal_errors(true);
$doc->loadHTML($html);
libxml_use_internal_errors(false);

$xpath = new DOMXPath($doc);
$tds = $xpath->query('//table/tbody/tr[3]/td[2]');
$variable4angka = $tds->item(0)->nodeValue ;
$tds2 = $xpath->query('//table/tbody/tr[4]/td[2]');
$tds3 = $xpath->query('//table/tbody/tr[5]/td[2]');
$variable4angkaprize2 = $tds2->item(0)->nodeValue ;
$variable4angkaprize3 = $tds3->item(0)->nodeValue ;
$td4angka = $xpath->query('//table/tbody/tr[4]/td');
$td4angkaadd = $xpath->query('//table/tbody/tr[6]/td');


$tdssub1 = $xpath->query('//table/tbody/tr[7]/td[1]');
$tdssub2 = $xpath->query('//table/tbody/tr[7]/td[2]');
$tdssub3 = $xpath->query('//table/tbody/tr[7]/td[3]');
$tdssub4 = $xpath->query('//table/tbody/tr[7]/td[4]');

$tdssubsub1 = $xpath->query('//table/tbody/tr[9]/td[1]') ;
$tdssubsub2 = $xpath->query('//table/tbody/tr[9]/td[2]') ;
$tdssubsub3 = $xpath->query('//table/tbody/tr[9]/td[3]') ;
$tdssubsub4 = $xpath->query('//table/tbody/tr[9]/td[4]') ;

$tdssubsubsub1 = $xpath->query('//table/tbody/tr[10]/td[1]') ;
$tdssubsubsub2 = $xpath->query('//table/tbody/tr[10]/td[2]') ;
$tdssubsubsub3 = $xpath->query('//table/tbody/tr[10]/td[3]') ;
$tdssubsubsub4 = $xpath->query('//table/tbody/tr[10]/td[4]') ;

$variabletd5angka1 = $tdssubsub1->item(0)->nodeValue ;
$variabletd5angka2 = $tdssubsub2->item(0)->nodeValue ;
$variabletd5angka3 = $tdssubsub3->item(0)->nodeValue ;
$variabletd5angka4 = $tdssubsub4->item(0)->nodeValue ;



$variabletd6angka1 = $tdssubsubsub1->item(0)->nodeValue ;
$variabletd6angka2 = $tdssubsubsub2->item(0)->nodeValue ;
$variabletd6angka3 = $tdssubsubsub3->item(0)->nodeValue ;
$variabletd6angka4 = $tdssubsubsub4->item(0)->nodeValue ;


$variabletd4angka1 = $tdssub1->item(0)->nodeValue ;
$variabletd4angka2 = $tdssub2->item(0)->nodeValue ;
$variabletd4angka3 = $tdssub3->item(0)->nodeValue ;
$variabletd4angka4 = $tdssub4->item(0)->nodeValue ;
$variabletd4angka5 = $td4angka->item(4)->nodeValue ;
$variabletd4angka6 = $td4angka->item(5)->nodeValue ;
$variabletd4angkaadd = $td4angkaadd->item(0)->nodeValue ;
?>


<!doctype html>
<html lang="en-US">
    <head>
       
        <link rel='stylesheet' id='twentynineteen-style-css' href='https://poolstoday.online/wp-content/themes/twentynineteen/style.css?ver=6.6.1' media='all'/>
        
        
    </head>
    <body>
        <div id="page" class="site">
            <header id="masthead" class="site-header">
                <div class="site-branding-container">
                    <div class="site-branding"></div>
                    <!-- .site-branding -->
                </div>
                <!-- .site-branding-container -->
            </header>
            <!-- #masthead -->
            <div id="content" class="site-content">
                <div id="primary" class="content-area">
                    <main id="main" class="site-main">
                        <article id="post-1828" class="post-1828 page type-page status-publish hentry entry">
                            <header class="entry-header"></header>
                            <div class="entry-content">
                               
                                <table class="tablelive" style="height: 419px;" width="384">
                                    <tbody>
                                        <tr>
                                            <td class="text-center" colspan="4">
                                                <img decoding="async" class="alignnone wp-image-1655" src="https://poolstoday.online/wp-content/uploads/2022/09/live-toto-sgp-300x61.png" alt="" width="379" height="77" srcset="https://poolstoday.online/wp-content/uploads/2022/09/live-toto-sgp-300x61.png 300w, https://poolstoday.online/wp-content/uploads/2022/09/hongkongpools.png 650w" sizes="(max-width: 379px) 100vw, 379px"/>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="box-color hk" colspan="4"><?php
setlocale(LC_ALL, 'IND');
echo strftime('%d %B %Y');
?></td>
                                        </tr>
                                        <tr>
                                            <td class="box-color hk" colspan="2">First Prize</td>
                                            <td class="box-value" colspan="2">
                                                <div class="row justify-content-center mb-2">
                                                    <div id="autolivesgptoto2" class="col-sm-12 mb-3">
                                                        <div class="bgsgptt">
                                                            <div class="mt-3">
                                                                <div class="row justify-content-center small-gutter mt-1">
                                                                    <div class="col-md-4 col-sm-8">
                                                                        <div id="sgp_toto_result" class="sggray py-1 px-2 rounded mt-1">
                                                                            <div class="row justify-content-center mb-2">
                                                                                <div id="autolivesgptoto2" class="col-sm-12 mb-3">
                                                                                    <div class="bgsgptt">
                                                                                        <div class="mt-3">
                                                                                            <div class="row justify-content-center small-gutter mt-1">
                                                                                                <div class="col-md-4 col-sm-8">
                                                                                                    <div id="sgp_toto_result" class="sggray py-1 px-2 rounded mt-1"><?php echo $variable4angka;?></div>
                                                                                                </div>
                                                                                            </div>
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="box-color hk" colspan="2">Second Prize</td>
                                            <td class="box-value" colspan="2">
                                                <div class="row justify-content-center mb-2">
                                                    <div id="autolivesgptoto2" class="col-sm-12 mb-3">
                                                        <div class="bgsgptt">
                                                            <div class="mt-3">
                                                                <div class="row justify-content-center small-gutter mt-1">
                                                                    <div class="col-md-4 col-sm-8">
                                                                        <div id="sgp_toto_result" class="sggray py-1 px-2 rounded mt-1">
                                                                            <div class="row justify-content-center mb-2">
                                                                                <div id="autolivesgptoto2" class="col-sm-12 mb-3">
                                                                                    <div class="bgsgptt">
                                                                                        <div class="mt-3">
                                                                                            <div class="row justify-content-center small-gutter mt-1">
                                                                                                <div class="col-md-4 col-sm-8">
                                                                                                    <div id="sgp_toto_result" class="sggray py-1 px-2 rounded mt-1"><?php echo $variable4angkaprize2;?></div>
                                                                                                </div>
                                                                                            </div>
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="box-color hk" colspan="2">Third Prize</td>
                                            <td class="box-value" colspan="2">
                                                <div class="row justify-content-center mb-2">
                                                    <div id="autolivesgptoto2" class="col-sm-12 mb-3">
                                                        <div class="bgsgptt">
                                                            <div class="mt-3">
                                                                <div class="row justify-content-center small-gutter mt-1">
                                                                    <div class="col-md-4 col-sm-8">
                                                                        <div id="sgp_toto_result" class="sggray py-1 px-2 rounded mt-1">
                                                                            <div class="row justify-content-center mb-2">
                                                                                <div id="autolivesgptoto2" class="col-sm-12 mb-3">
                                                                                    <div class="bgsgptt">
                                                                                        <div class="mt-3">
                                                                                            <div class="row justify-content-center small-gutter mt-1">
                                                                                                <div class="col-md-4 col-sm-8">
                                                                                                    <div id="sgp_toto_result" class="sggray py-1 px-2 rounded mt-1"><?php echo $variable4angkaprize3;?></div>
                                                                                                </div>
                                                                                            </div>
                                                                                        </div>
                                                                                    </div>
                                                                                </div>
                                                                            </div>
                                                                        </div>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="box-color hk" colspan="4">Starter Prize</td>
                                        </tr>
                                        <tr>
                                            <td class="box-value"><?php echo $variabletd4angka1;?></td>
                                            <td class="box-value"><?php echo $variabletd4angka2;?></td>
                                            <td class="box-value"><?php echo $variabletd4angka3;?></td>
                                            <td class="box-value"><?php echo $variabletd4angka4;?></td>
                                        </tr>
                                        <tr>
                                            <td class="box-color hk" colspan="4">Consolation Prize</td>
                                        </tr>
                                        <tr>
                                            <td class="box-value"><?php echo $variabletd5angka1;?></td>
                                            <td class="box-value"><?php echo $variabletd5angka2;?></td>
                                            <td class="box-value"><?php echo $variabletd5angka3;?></td>
                                            <td class="box-value"><?php echo $variabletd5angka4;?></td>
                                        </tr>
                                        <tr>
                                            <td class="box-value"><?php echo $variabletd6angka1;?></td>
                                            <td class="box-value"><?php echo $variabletd6angka2;?></td>
                                            <td class="box-value"><?php echo $variabletd6angka3;?></td>
                                            <td class="box-value"><?php echo $variabletd6angka4;?></td>
                                        </tr>
                                        
                                    </tbody>
                                </table>
                            </div>
                            <!-- .entry-content -->
                        </article>
                        <!-- #post-1828 -->
                    </main>
                    <!-- #main -->
                </div>
                <!-- #primary -->
</body>
</head>