Template with maltipal outputs in template?
Posted: Wed Feb 05, 2003 7:30 pm
I am wondering do you guys know how to get my template to put out more than one item from one variable? i have it setup like this now....
i only get one output and it ends up being the last item. can anyone help me fix this? thanks!
Code: Select all
<?
require_once("class.FastTemplate.php3");
mysql_connect("localhost","user","pass") or die("Unable to connect to SQL server");
mysql_select_db("database") or die("Unable to select database");
$menu = "SELECT * FROM menu_left ORDER BY menu_order";
$menu_left = mysql_query($menu);
$menurow == mysql_fetch_array($menu_left);
$tpl = new FastTemplate("./templates");
$tpl->define(array(
'main' => "index.tpl",
)
);
$tpl->asign(array(
"menu_left", $menurowї'menu_name']) );
$tpl->parse(MAIN, "main");
$tpl->FastPrint();
?>