Login   Register  
PHP Classes
elePHPant
Icontem

File: exampleFootPrintInDB.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Peeyush Budhia  >  PHP Visitor Tracking Class  >  exampleFootPrintInDB.php  >  Download  
File: exampleFootPrintInDB.php
Role: Example script
Content type: text/plain
Description: Example to store information in database.
Class: PHP Visitor Tracking Class
Track site visitors in files or a MySQL database
Author: By
Last change:
Date: 2014-01-07 05:35
Size: 439 bytes
 

Contents

Class file image Download
<?php
require 'class.FootPrintsInDB.php';

/**
 * Class Object
 */
$DB = new FootPrintsInDB('localhost''root''''visitorfootprints''footprintdetails');

/**
 * To store the visitor's information
 */
$DB->storeInfo();

/**
 * To retrieve and print the stored info
 */
foreach ($DB->retrieveInfo() as $allInformation) {
    foreach (
$allInformation as $info) {
        echo 
$info ' | ';
    }
    echo 
"<hr>";
}