2014-05-23, 05:53 PM
I not sure if this the place to ask this question so forgive me if it not.
I have created another mysql table called mybb_track. What I need to know is what is the code for inserting the postnum (post count) into it.
Everything works great except postnum.
Thanks
I have created another mysql table called mybb_track. What I need to know is what is the code for inserting the postnum (post count) into it.
if($mybb->user['uid']==0)
{
$tm=time();
$ref=$HTTP_REFERER;
$agent=$HTTP_USER_AGENT;
$ip=hexdec(substr(md5($_SERVER['REMOTE_ADDR']), 0, 6));
$db->query("INSERT INTO mybb_track(tm, ref, agent, ip, postnum) VALUES ('$tm','$ref','$agent','$ip','$postnum')");
}
Everything works great except postnum.
Thanks