query(" UPDATE feedback SET `helpful-{$clean['r']}` = `helpful-{$clean['r']}` + 1 WHERE CommentID = {$sql['cid']} ", SQL_NONE); $tpl->assign( array( 'title' => 'Rate a Comment for ' . $addon->Name, 'content' => 'ratecomment.tpl', 'rate' => $success, 'addon' => $addon, 'sidebar' => 'inc/addon-sidebar.tpl') ); function commentError() { global $tpl; $tpl->assign( array( 'title' => 'Rate a Comment', 'content' => 'ratecomment.tpl', 'error' => true) ); $tpl->display('inc/wrappers/nonav.tpl'); exit; } ?>