This is a nice idea but would not be more efficient if I substitute the
entire block like this:
this is what I have in the database:
<!-- TEXT -->ANY TEXT<!-- TEXT -->
this is what I want:
<!-- TEXT -->ANY TEXT <a href="edittext.php?pageid=X"><img
src="images/edit_buttom.gif"></a><!-- TEXT -->
what youl be a REGEX to substitute that block for this one above?
Thank you,
Rom
> Then, you get your complete text into $buffer and just:
>
> <?
> $endtag = "<!-- TEXT ENDS -->";
> $imgtag = " <a href='edittext.php?pageid=X'>"
> ."<img src='images/edit_buttom.gif'></a>";
> $output = ereg_replace($endtag, $imgtag.$endtag, $buffer);
> ?>
>
> Jason Murray
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]