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: 16 years ago
Size: 412 bytes
 

Contents

Class file image Download
<?php

include_once 'sql.cls.php';
include_once
'mylog.cls.php';
$mysql=new sqlFunctions();
$mysql->__construct($core, '', $dbh);
$lw=new myLogWriter();
$lw->__construct($mysql);
$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);
$tpl->display('mylogs.tpl');



?>