$db->update_query('posts',$update_array,'pid='.$post['pid']);// if it's the last post, we should update the thread and forums...
$lastcheck=$db->fetch_array($db->simple_select("posts","pid","tid='{$thread['tid']}'",array("limit"=>1,"order_by"=>"dateline","order_dir"=>"desc")));if($lastcheck['pid']==$post['pid']){$update_array1['lastposter']=$update_array['username'];$update_array1['lastposteruid']=$update_array['uid'];$db->update_query('threads',$update_array1,'tid='.$thread['tid']);$db->update_query('forums',$update_array1,'lastposttid='.$thread['tid']);}
(This post was last modified: 06-14-2010 06:08 PM by netjockey.)