PHP Classes

File: example001.php

Recommend this page to a friend!
  Classes of Md. Shahadat Hossain Khan Razon  >  Log Writer and Reader  >  example001.php  >  Download  
File: example001.php
Role: Example script
Content type: text/plain
Description: Example # 01 PHP File
Class: Log Writer and Reader
Store and retrieve logs from a MySQL database
Author: By
Last change:
Date: 12 years ago
Size: 412 bytes



Class file image Download

include_once 'sql.cls.php';
$mysql=new sqlFunctions();
$mysql->__construct($core, '', $dbh);
$lw=new myLogWriter();
$logs=$lw->getThisSessionLogArray(MU_USER_LOGIN_ID, 50);

// assign it into a template variable.. here i perfer to use smarty
if(is_array($logs)) $tpl->assign('activitieslog',$logs);


For more information send a message to info at phpclasses dot org.