Re: [PHP] php parsing and db content [RESOLVED]

2006-05-11 Thread Schalk Neethling
Chris wrote: Schalk wrote: Chris wrote: Chris wrote: actually if it's only one variable, this might do it for you: $content = str_replace('?php echo _root ?', _root, $content); but that's still a bad way to do this. Chris, This works: $breadcrumb = $row_pathway['pathway'];

Re: [PHP] php parsing and db content [RESOLVED]

2006-05-11 Thread John Hicks
Schalk Neethling wrote: Chris wrote: Schalk wrote: Chris wrote: Chris wrote: actually if it's only one variable, this might do it for you: $content = str_replace('?php echo _root ?', _root, $content); but that's still a bad way to do this. Chris, This works: $breadcrumb =

Re: [PHP] php parsing and db content

2006-05-11 Thread Richard Lynch
On Wed, May 10, 2006 9:32 pm, Schalk wrote: I have the following problem. I load certain links and breadcrumbs from the database into a external .php file which I include on various pages within the site. Due to this I have defined a constant '_root' and precede all links with this to ensure

[PHP] php parsing and db content

2006-05-10 Thread Schalk
Greetings All, I have the following problem. I load certain links and breadcrumbs from the database into a external .php file which I include on various pages within the site. Due to this I have defined a constant '_root' and precede all links with this to ensure that the links will work no

Re: [PHP] php parsing and db content

2006-05-10 Thread Chris
Schalk wrote: Greetings All, I have the following problem. I load certain links and breadcrumbs from the database into a external .php file which I include on various pages within the site. Due to this I have defined a constant '_root' and precede all links with this to ensure that the links

Re: [PHP] php parsing and db content

2006-05-10 Thread Chris
Chris wrote: Schalk wrote: Greetings All, I have the following problem. I load certain links and breadcrumbs from the database into a external .php file which I include on various pages within the site. Due to this I have defined a constant '_root' and precede all links with this to ensure

Re: [PHP] php parsing and db content

2006-05-10 Thread Schalk
Chris wrote: Chris wrote: Schalk wrote: Greetings All, I have the following problem. I load certain links and breadcrumbs from the database into a external .php file which I include on various pages within the site. Due to this I have defined a constant '_root' and precede all links with

Re: [PHP] php parsing and db content

2006-05-10 Thread Schalk
Chris wrote: Chris wrote: actually if it's only one variable, this might do it for you: $content = str_replace('?php echo _root ?', _root, $content); but that's still a bad way to do this. Chris, This works: $breadcrumb = $row_pathway['pathway']; $breadcrumb = str_replace('?php echo

Re: [PHP] php parsing and db content

2006-05-10 Thread Chris
Schalk wrote: Chris wrote: Chris wrote: actually if it's only one variable, this might do it for you: $content = str_replace('?php echo _root ?', _root, $content); but that's still a bad way to do this. Chris, This works: $breadcrumb = $row_pathway['pathway']; $breadcrumb =