PHP Classes

File: footer.php

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra  >  Giga CMS  >  footer.php  >  Download  
File: footer.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Giga CMS
Multi-user content management system
Author: By
Last change:
Date: 5 years ago
Size: 3,302 bytes


Class file image Download

= "$set->db_host";
$username = "$set->db_user";
$password = "$set->db_pass";
$dbname = "$set->db_name";

// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);

// Check connection
if ($conn->connect_error) {
"Connection failed: " . $conn->connect_error);

// get results from database
$result = mysqli_query($conn, "SELECT * FROM `".MLS_PREFIX."footer_settings` WHERE `id`='1'")
        or die(
// display data in table
    // loop through results of database query, displaying them in the table
while($row = mysqli_fetch_array( $result )) {
<footer id="fh5co-footer">
        <div class="container">
            <div class="row">
                <div class="col-md-6 col-sm-6">
                    <div class="fh5co-footer-widget">
                        <?php echo $row['about_company']; ?>
                    <div class="fh5co-footer-widget">
                        <ul class="fh5co-social">
                            <li><a href="<?php echo $row['facebook']; ?>"><i class="icon-facebook color-social"></i></a></li>
                            <li><a href="<?php echo $row['twitter']; ?>"><i class="icon-twitter color-social"></i></a></li>
                            <li><a href="<?php echo $row['instagram']; ?>"><i class="icon-instagram color-social"></i></a></li>
                            <li><a href="<?php echo $row['linkedin']; ?>"><i class="icon-linkedin color-social"></i></a></li>
                            <li><a href="<?php echo $row['youtube']; ?>"><i class="icon-youtube color-social"></i></a></li>

                <div class="col-md-2 col-sm-6">
                    <div class="fh5co-footer-widget top-level">
                        <?php echo $row['menu_footer_1']; ?>
                <div class="visible-sm-block clearfix"></div>

                <div class="col-md-2 col-sm-6">
                    <div class="fh5co-footer-widget top-level">
                        <?php echo $row['menu_footer_2']; ?>
                <div class="col-md-2 col-sm-6">
                    <div class="fh5co-footer-widget top-level">
                        <?php echo $row['menu_footer_3']; ?>

            <div class="row fh5co-row-padded fh5co-copyright">
                <div class="col-md-5">
                    <p><small><?php echo $row['copyright']; ?></small></p>

<!-- jQuery Easing -->
<script src="<?php echo $set->url;?>/theme/js/jquery.easing.1.3.js"></script>
<!-- Owl carousel -->
<script src="<?php echo $set->url;?>/theme/js/owl.carousel.min.js"></script>
<!-- Waypoints -->
<script src="<?php echo $set->url;?>/theme/js/jquery.waypoints.min.js"></script>
<!-- Magnific Popup -->
<script src="<?php echo $set->url;?>/theme/js/jquery.magnific-popup.min.js"></script>
<!-- Main JS -->
<script src="<?php echo $set->url;?>/theme/js/main.js"></script>

<script type="text/javascript" src=""></script>
<script src="<?php echo $set->url;?>/js/jquery.min.js"></script>
<script src="<?php echo $set->url;?>/js/jquery-1.10.2.min.js"></script>
<script>window.jQuery || document.write('<script src="<?php echo $set->url;?>/js/jquery-1.11.3.min.js"><\/script>')</script>
<script src="<?php echo $set->url;?>/bootstrap/js/bootstrap.min.js"></script>
<!-- Validate Plugin -->
<script src="<?php echo $set->url;?>/js/vendor/jquery.validate.min.js"></script>
<script src="<?php echo $set->url;?>/js/main.js"></script>