jQuery DataTable Plugin PHP/MySQL


Folder Structure:


index.php

<!DOCTYPE html>
<html>
<head>
    <title>Web Application</title>
    <link rel="stylesheet" type="text/css" href="media/css/jquery.dataTables.css">
    <script type="text/javascript" src="jquery-1.12.4.js"></script>
    <script type="text/javascript" src="media/js/jquery.dataTables.js"></script>
    
    <style type="text/css">
        *{
            font-size: 13px;
            font-family: arial;
        }
        .main{
            width: 1000px;
            margin: 0 auto;
        }
    </style>
    <script type="text/javascript">
        $(document).ready(function() {
            $('#example').DataTable({
                "processing": true,
                "serverSide": true,
                "ajax": "examples/server_side/scripts/server_processing.php"
            });
        });
    </script>
</head>
<body>
    <div class="main">
        <table id="example">
            <thead>
                <tr>
                    <th>Id</th>
                    <th>First Name</th>
                    <th>Last Name</th>
                    <th>Last Update</th>
                </tr>
            </thead>
            <tfoot>
                <tr>
                    <th>Id</th>
                    <th>First Name</th>
                    <th>Last Name</th>
                    <th>Last Update</th>
                </tr>
            </tfoot>
        </table>
    </div>
</body>
</html>
---------------------------------------------
Table Structure



Demo:


Share on Google Plus

About Ram Pukar

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment