ตารางเกินหน้าครับ

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

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

ภาพประจำตัวสมาชิก
jamepiyawat
PHP VIP Members
PHP VIP Members
โพสต์: 2008
ลงทะเบียนเมื่อ: 21/05/2019 10:45 am

ตารางเกินหน้าครับ

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

พอดีว่าผมอยากจะทำให้ตารางที่ดึงข้อมูลมาแสดงผลข้อมูลเท่ากับหน้าเว็บครับแต่ว่าตอนนี้มันเกินออกไปทำยังไงดีครับ
Selection_667.png

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

<div class="row">
        <div class="col-md-12 table-responsive" align="center">
            <h3 align="center"><?php echo $lang_recentinformation;?></h3>
            <table class="table table-striped">
                <thead class="bg-primary" align="bottom">
                    <tr>
                        <th class="text-center"><b><?php echo $lang_no; ?></b></th>
                        <th class="text-center">  <?php echo $lang_name?>  </th>
                        <th class="text-center">  <?php echo $lang_unit?>  </th>
                        <th class="text-center">  <?php echo $lang_keyword?>  </th>
                        <th class="text-center">  <?php echo $lang_savewhen?>  </th>
                        <th class="text-center">  <?php echo $lang_ipaddress;?>  </th>
                        <!-- <th>  Edit time-date  </th> -->
                        <th class="text-center"> <?php echo $lang_showinformation?> </th>
                    </tr>
                </thead>

                <?php
                while ($fetch = mysqli_fetch_assoc($result)) {
                    ?>

                    <tr>
                        <td class="text-center">  <?php echo $fetch['id']; ?></td>      <!-- ลำดับ-->
                        <td class="text-center">  <?php echo $fetch['name']; ?></td>    <!-- ชื่อ-->
                        <td class="text-center">  <?php echo $fetch['url']; ?></td>     <!-- url-->
                        <td class="text-center">  <?php echo $fetch['keyword']; ?></td> <!-- keyword-->
                        <td class="text-center">  <?php
                            if ($fetch['create_time']) {
                                date_default_timezone_set("Asia/Bangkok");
                                echo (date("Y-m-d  H:i:s", $fetch['create_time']));
                            }
                            ?></td>
                        <td class="text-center">  <?php include 'ip.php'; ?></td>
                        <td>
                    <center><a  class="glyphicon glyphicon-new-window" href="show.php?id= <?php echo $fetch['id']; ?>&lang=<?php echo $lang; ?> "></a></center>
                    </td>

                    </tr>
                    <?php
                }
                ?>
            </table>
            <div class="row">
                    <div class="col-md-12">
                        <div class="text-center">
                            <nav aria-label="Page navigation">
                                <?php
                                echo $Pagination->parse();
                                ?>
                            </nav>

                        </div>
                    </div>
                </div>
            <a href="list.php?lang=<?php echo $lang; ?>"  class="btn btn-primary"><?php echo $lang_moreinformation; ?></a>
        </div>
    </div>
ภาพประจำตัวสมาชิก
thatsawan
PHP VIP Members
PHP VIP Members
โพสต์: 28508
ลงทะเบียนเมื่อ: 31/03/2014 10:02 am
ติดต่อ:

Re: ตารางเกินหน้าครับ

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

มันน่าจะไม่มีการกำหนด กรอบ หรือการจัดว่า ข้อมูลหากเราไม่กำหนดมันก็จะเเสดงข้อมูลเต็มจอ
หากใช้ Bootstrap ลองศึกษา เรื่อง Grid ดู
Grid System ใน Bootstrap 4 viewtopic.php?f=76&t=55890&p=148575
ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 41336
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

Re: ตารางเกินหน้าครับ

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

ลองตัดข้อความ ที่แสดง ผลให้สั้นลง
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 41336
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

Re: ตารางเกินหน้าครับ

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

ครอบโค้ด php ด้วย BBcode

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

[code=php]<?php // TODO 
[/code]
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ตอบกลับโพส

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

สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 81