Re: Ooops - I forgot the question... Freaking difficul thing to do (at least for me)
| From: | Richard Lynch | Date: | Tue, 16 Jan 2001 03:23:27 +0000 |
| Subject: | Re: Ooops - I forgot the question... Freaking difficul thing to do (at least for me) | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34747@lists.php.net to get a copy of this message | ||
> My question is how I can do that after I get the data from the database? I
> mean how I can make this admin module to work?
You'll need to have to use str_replace/ereg_replace or similar to alter the
keywords you dream up into HTML.
EG:
$html = str_replace("[LINK]", "<A HREF=", $content);
All in all, though, it sounds like you are re-inventing the wheel...
Various templating systems (PHPLib, FastTemplate, et al) and HTML-editors
(eGrail springs to mind) already provide this functionality...
Unless you're just doing this to learn, I'd look into just using one of
those.