ok, in postings.php, under "start do delete thread", i added this way the code:
Code:
deletethread($threadid,$foruminfo[countposts]);
$lastpost = $DB_site->query_first("SELECT title,lastpost FROM thread WHERE forumid='$threadinfo[forumid]' ORDER BY lastpost DESC LIMIT 1");
$DB_site->query("UPDATE forum SET lastthread='".addslashes(htmlspecialchars($lastpost['title']))."' WHERE forumid='$threadinfo[forumid]'");
what do i miss scott?