Jump to content
MakeWebGames

Recommended Posts

Posted

this is what i have, but its not showing logs

function view_event_logs()

{

global $db,$ir,$c,$h,$userid;

$_GET['st']=abs((int) $_GET['st']);

$rpp=100;

print "<h3>events Logs</h3>

<table width=75% cellspacing='1' border='1' class=''> \n<tr style='background:darkred'> <th>ID</th> <th>Time</th> <th>User ID</th> <th width=30%>Event</th> <th></th> </tr>";

while($r=$db->fetch_row($q))

{

print "\n<tr><td>{$r['evID']}</td> <td>" . date("F j, Y, g:i:s a",$r['evTIME']) . "</td><td>{$r['evUSER']} [{$r['evUSER']}] </td> {$r['evTEXT']}</td> \n<td>{$r['evTEXT']}</td> <td> </tr>";

}

print "</table>

";

$mypage=floor($_GET['st']/$rpp)+1;

$q2=$db->query("SELECT evID FROM events WHERE evUSER != 0");

$rs=$db->num_rows($q2);

$pages=ceil($rs/$rpp);

print "Pages: ";

for($i=1;$i<=$pages;$i++)

{

$st=($i-1)*$rpp;

print "$i";

if($i % 7 == 0) { print "

\n"; }

}

stafflog_add("Viewed the events Logs (Page $mypage)");

}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...