Download And Use FooTable

How To Download And Use FooTable


In this FooTable Tutorial we will see How To Download And Use Foo Table To Style Html Table .

I Use In This Tutorial:
- NetBeans IDE .
- PhpMyAdmin .

First Download Footable


Source Code:

<!-- php code to get data from mysql database -->


$hostname = "localhost";
$username = "root";
$password = "";
$databaseName = "test_db";

$connect = mysqli_connect($hostname, $username, $password, $databaseName);
$query = "SELECT * FROM `users";
$result = mysqli_query($connect, $query);


<!DOCTYPE html>
        <title> Using FooTable </title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="css/footable.core.css">
        <link rel="stylesheet" href="css/footable.metro.css">
        <table class="footable">
                <th>First Name</th>
                <th>Last Name</th>

                <!-- populate table from mysql database -->
            <?php while($row1 = mysqli_fetch_array($result)):;?>
                <td><?php echo $row1[0];?></td>
                <td><?php echo $row1[1];?></td>
                <td><?php echo $row1[2];?></td>
                <td><?php echo $row1[3];?></td>
            <?php endwhile;?>



footable using metro css
footable using metro style

footable using standalone css
footable using standalone style

Share this

Related Posts

Next Post »