name : show_contact_layout.php
<?php 
        include('../config/config.php');
        $sql = "SELECT * FROM companys ";
        $res = $conn->query($sql);
        $n = 0;
        while($row = $res->fetch_assoc()){
    ?> 
    <div class="panel panel-primary" style="margin-top:25px;margin-right:25px;">
        <div class="panel-heading">Contact info</div>
        <div class="panel-body">
        <p class="title_iv"><strong>INTERIOR VISIONS</strong></p></br>
                    <?php 
                      include('../config/config.php');
                      $sql = "SELECT * FROM contacts";
                      $res = $conn->query($sql);
                      while($row = $res->fetch_assoc()){
                    ?>
                    <p style="font-size:18px;color:black;line-height:120%;" class="hidden-xs">
                       <?php echo $row['ct_address']; ?></br>
                      <span style="padding-right:24px;">Tel</span> :  +66 <span><?php echo $row['ct_tel']; ?>-<?php echo $row['ct_tel2'];  ?></span></br>
                      <span>Email</span> : <span style="padding-left:15px;"><?php echo $row['ct_mail']; ?></span></br>
                    </p>
                    <?php                         
                      } 
                    ?>
        </div>
    </div>

    <?php 
    }
    ?>

© 2024 UnknownSec