I dont no if i am doing this right but I did this. Can u help me out. I get a database error everytime i try to make a reply now. Don't know what to do.
PHP Code:
$posts=$DB_site->query_first("SELECT COUNT(*) as counter FROM post WHERE userid=$bbuserinfo[userid] AND forumid IN(23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 38, 55, 56) AND dateline>".(time()-3600*720));
if(in_array($threadinfo[forumid],array(23, 24, 25, 26, 27, 28, 29, 30, 32, 33, 34, 35, 36, 37, 38, 55, 56)) and $posts[counter]<2) show_nopermission();