โค้ดบริการตรวจหวย อัพเดทผลการออกรางวัลสลากกินแบ่งรัฐบาล
โค้ดหวย อัพเดทผลหวยจาก
สำนักงานสลากกินแบ่งรัฐบาล
Plugin wordpress สามารถดาวน์โหลดได้ที่
https://wordpress.org/plugins/thai-lottery-widget/
ขนาดเล็กพิเศษ
โค้ด: เลือกทั้งหมด
<iframe src="https://www.lottery.co.th/small" width="210" height="290" frameborder="0"></iframe>
แสดงผลสลากพร้อมช่องกรอกหมายเลข
โค้ด: เลือกทั้งหมด
<iframe src="https://www.lottery.co.th/share" width="100%" height="650" frameborder="0"></iframe>
เฉพาะผลสลากรางวัลหลัก
โค้ด: เลือกทั้งหมด
<iframe src="https://www.lottery.co.th/show" width="100%" height="340" frameborder="0"></iframe>
ช่องกรอกหมายเลขสลาก
โค้ด: เลือกทั้งหมด
<iframe src="https://www.lottery.co.th/numbers" width="100%" height="410" frameborder="0"></iframe>
ย้อนหลัง 10 งวดล่าสุด
โค้ด: เลือกทั้งหมด
<iframe src="https://www.lottery.co.th/10lotto" width="100%" height="500" frameborder="0"></iframe>
php อ่านค่าจาก rss feed
โค้ด: เลือกทั้งหมด
<?php
$i = 0;
$url = "https://www.lottery.co.th/lotto/feed";
$rss = simplexml_load_file($url); // XML parser
print '<h2><img style="vertical-align: middle;" src="'.$rss->channel->image->url.'" /> '.$rss->channel->title.'</h2>';
foreach($rss->channel->item as $item) {
if ($i < 10) { // parse only 10 items
print '<h3><a href="'.$item->link.'" title="'.$item->title.'">'.$item->title.'</a></h3><br />'.$item->description.'';
}
$i++;
}
?>
โค้ดหวยนี้แจกฟรี สามารถนำไปติดเว็บได้ และปรับแต่งขนาดได้ตามต้องการ โค้ดแต่งเว็บไซต์ code html สําเร็จรูป
สำหรับนักพัฒนาที่ต้องการในรูปแบบของ ผลสลากกินแบ่งรัฐบาล Json สำหรับทำแอพหรืออื่นๆ สามารถอ่านและติดต่อได้ที่หน้า
https://www.lottery.co.th/code
หรือติดตามเราได้ที่
หน้าบล็อก