[Phplib-users] dumping vars in a block
Brought to you by:
nhruby,
richardarcher
From: Daniel B. <bo...@io...> - 2001-08-13 23:41:13
|
I am using the template class. I have a repeating block in a while loop with about 25 vars in it. something like this while($q->next_record()) { $tpl->set_var("firstname",$q->f("firstname"); ... $tpl->set_var("address2",$q->f("address2"); ... $tpl->parse("addresses",'addressblock") } not every record is going to have address2 how do I clear out all the vars in this block before setting them all for the current record and parsing again. thanks |