Hi, I keep getting this error from my listing page
PHP error happened
Technical information
Error type 256
Error description Smarty error: [in pupils_list.htm line 191]: syntax error: unclosed tag \{if} (opened line 21). (Smarty_Compiler.class5.php, line 317)
URL intranet/staff/rep2/pupils_list.php?mastertable=staff&masterkey1=7A
Error file E:\wwwroot\Intranet\staff\rep2\libs\Smarty.class5.php
Error line 1099
SQL query SELECT concat(Surname, ', ', Forename) AS Pupil, Reg, ID_pup, Intake, Gender, cont, att, beh, com, more_com, printed FROM pupils where (pupils.printed IS NULL = True AND pupils.more_com IS NOT NULL ) and (Reg='7A')
when i LOOK AT THE line mentioned, line 21 it reads thus
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>pupils</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252"><LINK
href="include/style.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3268" name=GENERATOR></HEAD>
<BODY bgColor=white topMargin=5 {$onload}>{$includes}{include_if_exists file="include/header.php"}
<FORM name=frmSearch action=pupils_list.php method=get><input type="Hidden" name="a" value="search"><input type="Hidden" name="value" value="1"><input type="Hidden" name="SearchFor" value=""><input type="Hidden" name="SearchOption" value=""><input type="Hidden" name="SearchField" value=""></FORM>
<TABLE cellSpacing=0 cellPadding=0 width="99%" align=center border=0>
<TBODY>
<TR>
<TD>{if $mastertable!=""}
<P align=center><A class=tablelinks href="{$mastertable_short}_list.php?a=return"><B>Back to Master
table</B></A></P>{/if}
<TABLE class=navigation cellSpacing=0 cellPadding=3 width="100%"
border=0><TBODY>
<TR>
<TD align=left><FONT style="FONT-FAMILY: Verdana, Arial">Logged
as</FONT> <B>{$userid}</B> <A
href="login.php?a=logout">Log out</A> <A
href="changepwd.php">Change password</A></TD>
<TD align=right>{if $rowsfound}{if $allow_export} {/if} {if $allow_export}
| {/if}<!--language--></TD></TR></TBODY></TABLE><BR>
If I add an extra {/if} in the lst quoted line, after all the nbsp codes bur before the {/if} that is there, it seems to work fine, where do I alter the template to sort this?