Location: PHPKode > projects > l2jweb > announcements.php
<?

$ssql = "SELECT * FROM `web_announce` ORDER BY `date` DESC LIMIT 0, " . ANNNO .
    "";
$fetch = $db->fetch_all_array($ssql);
for ($i = 0; $i < ANNNO; $i++)
{
	if (@$fetch[$i]==NULL) 
		{
			if ($i==0) $sql_fetch['none'] = 'None';
			break;
		}
    $sql_fetch[$fetch[$i]['date']] = html_entity_decode(stripslashes($fetch[$i]['text']));
}
$smarty->assign('sql_fetch', $sql_fetch);

$ann = $smarty->fetch('announce.tpl');
$smarty->assign('ANNOUNCE', $ann);

?>
Return current item: l2jweb