Re: php parsing and db content
| From: | Schalk | Date: | Thu, 11 May 2006 03:56:52 +0000 |
| Subject: | Re: php parsing and db content | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-235961@lists.php.net to get a copy of this message | ||
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 _root ?>', _root, $breadcrumb); echo $breadcrumb; However, I would still like to know why this is a bad way to do this and hopefully find a better way. Still learning all the aspects of PHP so any input is appreciated. -- Kind Regards Schalk Neethling Web Developer.Designer.Programmer.President Volume4.Business.Solution.Developers