สอบถามจะ Get ID จาก Table นี้ยังไงอ่าครับ

สำหรับผู้ที่ เริ่มต้น Programming - PHP มีอะไร แนะนำ หรือข้อสงสัยต้องบอร์ด นี้ คนที่มีความรู้ แบ่งปันคนอื่นบ้างนะ ปัญหาการเขียนโปรแกรม แบบ OOP Session Cookies php network

Moderator: mindphp, ผู้ดูแลกระดาน

AePongsak
PHP VIP Members
PHP VIP Members
โพสต์: 4996
ลงทะเบียนเมื่อ: 17/09/2016 10:09 am

สอบถามจะ Get ID จาก Table นี้ยังไงอ่าครับ

โพสต์ที่ยังไม่ได้อ่าน โดย AePongsak »

โค้ด: เลือกทั้งหมด

  <div class="row">
                <div class="col-sm-2"></div>
                <div class="col-sm-8">
               <table class="table table-bordered">
                     <thead>
                       <tr class="info">
                         <th>Firstname</th>
                         <th>Lastname</th>
                       </tr>
                     </thead>
                     <tbody>
                       <tr>
                         <th>  ID  </th>
                         <td>  <?php  echo $data['id']; ?></td>
                       </tr>
                       <tr>
                         <th>  Name  </th>
                         <td><?php  echo $data['name']; ?></td>
                       </tr>
                       <tr>
                         <th>  Value  </th>
                         <td><?php  echo $data['value']; ?></td>
                       </tr>
                       <tr>
                         <th>  Unit  </th>
                         <td><?php  echo $data['unit']; ?></td>
                       </tr>
                       <tr>
                         <th>  Bytes  </th>
                         <td><?php  echo $data['Bytes']; ?></td>
                       </tr>
                       <tr>
                          <th> Kb  </th>
                          <td><?php  echo $data['Kb']; ?></td>
                       </tr>
                       <tr>
                          <th> Mb  </th>
                         <td><?php  echo $data['Mb']; ?></td>
                       </tr>
                       <tr>
                          <th> Gb  </th>
                         <td><?php  echo $data['Gb']; ?></td>
                       </tr>
                       <tr>
                          <th>  Tb  </th>
                         <td><?php  echo $data['Tb']; ?></td>
                       </tr>
                       <tr>
                          <th>Time - date  </th>
                         <td><?php
                         if ($data['date']) {
                           date_default_timezone_set("Asia/Bangkok");
                           echo (date(" H:i:s - d-m-Y ",$data['date']));
                         }

                          ?></td>
                       </tr>
                       <tr>
                          <th>  IP  </th>
                         <td><?php  echo $data['ip']; ?></td>
                       </tr>

                     </tbody>
                   </table>

                </div>
                <div class="col-sm-2">

                  </div>

  </div>
รูปภาพ
ξν℮ry story has an end but in life every end is a neω ßeginning.
ภาพประจำตัวสมาชิก
thatsawan
PHP VIP Members
PHP VIP Members
โพสต์: 28508
ลงทะเบียนเมื่อ: 31/03/2014 10:02 am
ติดต่อ:

Re: สอบถามจะ Get ID จาก Table นี้ยังไงอ่าครับ

โพสต์ที่ยังไม่ได้อ่าน โดย thatsawan »

งง คำถาม
สอบถามจะ Get ID คืออะไร
AePongsak
PHP VIP Members
PHP VIP Members
โพสต์: 4996
ลงทะเบียนเมื่อ: 17/09/2016 10:09 am

Re: สอบถามจะ Get ID จาก Table นี้ยังไงอ่าครับ

โพสต์ที่ยังไม่ได้อ่าน โดย AePongsak »

จะดึงข้อมูลจากอีกหน้า ให้มาแสดงหน้านี้ โดยใช้ ID ที่คลิกเข้ามาครับ
รูปภาพ
ξν℮ry story has an end but in life every end is a neω ßeginning.
AePongsak
PHP VIP Members
PHP VIP Members
โพสต์: 4996
ลงทะเบียนเมื่อ: 17/09/2016 10:09 am

Re: สอบถามจะ Get ID จาก Table นี้ยังไงอ่าครับ

โพสต์ที่ยังไม่ได้อ่าน โดย AePongsak »

ได้แล้วครับใช้

โค้ด: เลือกทั้งหมด

<?php if (isset($_GET['id'])){ ?>
....Table...
<?php } ?>
รูปภาพ
ξν℮ry story has an end but in life every end is a neω ßeginning.
ตอบกลับโพส
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: Google [Bot] และบุคลทั่วไป 116