FastTemplate

From: Date: Mon, 04 Sep 2000 23:42:22 +0000
Subject: FastTemplate
Groups: php.general 
Request: Send a blank email to php-general+get-15180@lists.php.net to get a copy of this message
I am using dynamic templates in Fast Template to make multiple rows in a table. Using PHP3.2. I have four dynamic templates all in the same parent. I have verified that I am getting all the data I want out of the database, but only the last row shows on the resultant web page, except weirdly, the third dynamic template seems to work OK--i.e. show all the rows it is supposed to. I am doing them ALL exactly the same at least I think I am! let's say my template variable is called $tpl, Let's say my dnyamic template is mydyntemp, defined as $tpl->define_dynamic("mydyntemp","main"); for each row I get from the database I do a $tpl->assign(array ( BLABLA => something from db, BLABLA2 => something else from db )); then I do a $tpl->parse(JUNK,".mydyntemp"); Isn't the dot supposed to concatenate it to the previous one instead of overwrite it???? when I'm all done with all the dynamic templates, then I parse the main template, and all the other stuff in it is coming out fine. Am I right, that it doesn't matter what you call the first parameter? I'm just about ready to extract these dynamic and make them normal!! for how to maximize your time on line go to http://theroute.to/easymoney ______________________________________________________ Get Paid... With Your Free Email at http://www.zwallet.com/index.html?user=platypus

« previous php.general (#15180) next »