Re: [PHP] pulling in template file in var and populating vars?

2006-03-23 Thread Kevin Waterson
This one time, at band camp, clive [EMAIL PROTECTED] wrote: You could also look at using a templating engine like Smarty for instance. BHAHAHAHAHAHAHAAA 1000 lines of code for hello world -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb

Re: [PHP] pulling in template file in var and populating vars?

2006-03-23 Thread Richard Lynch
On Wed, March 22, 2006 3:02 pm, blackwater dev wrote: I have a chunk of html data that I want to output for each iteration through a db result while($result){ $list.=file_get_contents(my_template_file.php); } return $list; The template file looks like this: table tr

[PHP] pulling in template file in var and populating vars?

2006-03-22 Thread blackwater dev
I have a chunk of html data that I want to output for each iteration through a db result while($result){ $list.=file_get_contents(my_template_file.php); } return $list; The template file looks like this: table tr td?php echo $result[name];?/td /tr /table I basically want

Re: [PHP] pulling in template file in var and populating vars?

2006-03-22 Thread John Nichel
blackwater dev wrote: I have a chunk of html data that I want to output for each iteration through a db result while($result){ $list.=file_get_contents(my_template_file.php); } return $list; The template file looks like this: table tr td?php echo $result[name];?/td /tr

Re: [PHP] pulling in template file in var and populating vars?

2006-03-22 Thread Jim Lucas
blackwater dev wrote: I have a chunk of html data that I want to output for each iteration through a db result while($result){ $list.=file_get_contents(my_template_file.php); } return $list; The template file looks like this: table tr td?php echo $result[name];?/td /tr

Re: [PHP] pulling in template file in var and populating vars?

2006-03-22 Thread clive
You could also look at using a templating engine like Smarty for instance. clive blackwater dev wrote: I have a chunk of html data that I want to output for each iteration through a db result while($result){ $list.=file_get_contents(my_template_file.php); } return $list; The template