RE: [Phplib-users] dumping vars in a block
Brought to you by:
nhruby,
richardarcher
From: Richard A. <rh...@ju...> - 2001-08-14 01:12:36
|
At 5:14 PM -0700 13/8/01, Daniel Bondurant wrote: >forgot to say, that I only wanna set address2 if it exists > >if ($q->f("address1")) { > $tpl->set_var("address2",$q->f("address1")."<br>"; >} eles { > $tpl->set_var("address1",""); >} Yup, that's how I'd do it (typos excluded :). Is that not what you are looking for? Oh, and I think you're missing a "true" to your parse call... you probably want to append these records. ...R. |