PHP Classes

File: exampleFootPrintInDB.php

Recommend this page to a friend!
  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: 10 years ago
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>";
}