" jquery visitor counter script, jquery visit counter, jquery counter visitors, jquery visitor count, jquery counter, php session visitor counter, php count visitors, php mysql jquery visitor counter, php hit counter jquery, visitors counter using jquery, php code to create nag counter, php code to count and display online visitors, page visitor counter in php mysql, php simple counter, php simple visitor counter, php visitor counter script, visitors counter php session, visitors counter online for the site "

Tutorial ini membutuhkan :
  1. File PHP -> counter.php
  2. Database MySQL
Source Code Database MySQL :
DROP TABLE IF EXISTS `mypage`;

CREATE TABLE `mypage` (
  `visitor` int(11)
)
ENGINE=MYISAM
ROW_FORMAT=default;
Untuk database, kita harus memasukkan angka nol (0) sebagai nilai.

Source Code counter.php
<?php
// fungsi session_start() harus diletakkan paling atas.
session_start();

// koneksi ke database
mysql_connect("localhost", "", "");
mysql_select_db("mypage");

/* cek session "visitor".
   kalo nggak ada, update database dan membuat session berdasar Session ID. */
if (!session_is_registered("visitor")) {
    $visitor = session_id();
    session_register("visitor");

// Update value di kolom visitor
    mysql_query("update counter set visitors=visitors+'1'");
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <title>Counter</title>
    </head>
    <body>
        Counter :
        <?php
        // Select data dari counter dan menyimpannya ke $result.
        $result = mysql_query("select * from counter");
        $row = mysql_fetch_assoc($result);

        // Output visitor record.
        echo $row['visitors'];

        // Close koneksi database
        mysql_close();
        ?>
    </body>
</html>




 *.:。✿ Don't forget to come back again ✿.。.:*




Visit Wahyudi Blog !

jquery visitor counter script, jquery visit counter, jquery counter visitors, jquery visitor count, jquery counter, php session visitor counter, php count visitors, php mysql jquery visitor counter, php hit counter jquery, visitors counter using jquery, php code to create nag counter, php code to count and display online visitors, page visitor counter in php mysql, php simple counter, php simple visitor counter, php visitor counter script, visitors counter php session, visitors counter online for the site, visitor tracking phph mysql session, visitor counter html javascript php code, visitor counte symfony2, visisor count by php, tutorial visitor counter php mysqli, site session counter php mysql, Simple Visitors Counter, simple file using php and mysql, search visitors script, script php visitor counter dengan database, online visitors counter jquery, Online visitors counter, no of visits count in php using session, how to create a nag counter using php, how to count online visitor in web site in php, hit visitor jquery, hit counter in php jquery, free php jquery hit counter, create a nag counter on php with 5 time limit, counter visitors simple php, counter using php, counter using mysql 2013