I made a simple page that takes out information from the database and by using phpbb templates it displays as a separate page, only problem is that sometimes it does not update when I change database content.
For example, this I have in my .html file (style):
Code: Select all
<tr class='row2'><td class='profile'><div class='gensmall' style='float: left;'><h2>{CAT_NAME}<h2></div></td></tr>
And in the .php file, which is linked to the .html file, I have this:
Code: Select all
$sql = "SELECT forum_name FROM phpbb_forums WHERE forum_id='85'";
$result = $db->sql_query($sql, 600);
while ($row = $db->sql_fetchrow($result))
{
$cat_name = $row['forum_name'];
}
$db->sql_freeresult($result);
$template->assign_vars(array(
'CAT_NAME' => $cat_name,
));
The problem is that sometimes I change forum_name in ACP, but it does not show the new name in my page, only when I delete cache/.
Is there a way to fix this problem?
Sorry if this isn't the right forum, didn't think that other categories would fit better.