Thanks for your help and patience ... i feel like a idiot all over again 😕
Now im getting this error from smarty
Fatal error: Smarty error: [in notes.tpl line 27]: syntax error: 'foreach: item' must be a variable name (literal string) (Smarty_Compiler.class.php, line 1158) in /usr/local/lib/php/Smarty/Smarty.class.php on line 1088
Ive made a table ... and placed well ... ill show you
// THIS IS THE PHP CODE FROM NOTES.PHP
$result = mysql_query("SELECT * FROM `shocc_notes` WHERE `to` = '" . $_SESSION['username'] . "'") or die(mysql_error());
while ($row = mysql_fetch_assoc($result)) {$notes[] = $row;}
if(!$row) {
$no_new = "You have No New Notes ...";
}
// Assign The Data for Output
$smarty->assign('notes',$notes);
$smarty->assign('no_new',$no_new);
And now for the template ...
<p>Notes Inbox </p>
</span>
<p class="textmain">Welcome to Your Private Notes Center </p>
<p class="textmain">{foreach item=$entry from=$notes}</p>
<form name="notes" method="post" action="/send_note.php">
<table width="100%" border="0">
<tr>
<td width="72%" valign="bottom"> </td>
<td width="72%" valign="bottom"> </td>
<td width="72%" valign="bottom"> </td>
<td width="28%" rowspan="3" align="center" valign="top"><img src="/advertisement.gif" width="120" height="10"><br>
{$rm_160}</td>
</tr>
<tr>
<td valign="top"><p>{$entry.to}</p>
<td valign="top">{$entry.from}</td>
<td valign="top">{$entry.time}</td>
</tr>
<tr>
<td valign="top"> </td>
<td valign="top"> </td>
<td valign="top"> </td>
</tr>
</table>
</form> <p class="textmain"><span class="textmain">
{/foreach}</span></p></td>
Is that not correct , bc it's giving me an error